3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $idx = (object) [ 'k' => [[3], [2,4]] ]; $idx->k[0] = [2]; print_r($idx);
based on 2Qv8k
Output for 5.6.0 - 7.2.6
stdClass Object ( [k] => Array ( [0] => Array ( [0] => 2 ) [1] => Array ( [0] => 2 [1] => 4 ) ) )