Find all documents in MongoDB

Code
<?php

$m 
= new MongoClient();

/* @var $test MongoDB */
$test $m->selectDb('test');

/* @var $coll MongoCollection */
$coll $test->selectCollection('my_table');

$results $coll->find();

foreach(
$results as $result) {
    
var_dump($result);
}
Result
array(4) {
["_id"]=>
object(MongoId)#378 (1) {
["id"]=>
string(24) "54204806895f69383a8b4567"
}
["name"]=>
string(17) "name54204806e512e"
["value"]=>
string(18) "value54204806e5187"
["object"]=>
array(0) {
}
}
array(3) {
["_id"]=>
object(MongoId)#373 (1) {
["id"]=>
string(24) "54204815895f693e3a8b4567"
}
["name"]=>
string(17) "name54204815300aa"
["value"]=>
string(18) "value54204815300e5"
}
array(4) {
["_id"]=>
object(MongoId)#367 (1) {
["id"]=>
string(24) "5421399f895f69524d8b4567"
}
["name"]=>
string(6) "myname"
["value"]=>
string(7) "myvalue"
["object"]=>
array(0) {
}
}
Used Versions
PHP 7.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6