3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { function tester($z=1) { echo '22 '.$z; } } $d = new Test(); $mom = array( 'hell' => $d ); $mom['hell']->tester();
Output for 4.3.0 - 7.1.0
22 1