3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function sample( &$array ) { $array['test'] = 'test1'; } function sample1( array $fruit ) { var_dump( $fruit ); } sample1( sample( array( 'test2' => 'test3' ) ) );
Output for 5.3.0 - 5.5.6
Fatal error: Only variables can be passed by reference in /in/AOaPB on line 13
Process exited with code 255.