3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php$array = array(0=>array("id"=>9, "roi"=>0), 1=>array("id"=>1,"roi"=>0), 2=>array("id"=>10,"roi"=>0), 3=>array("id"=>14,"roi"=>0), 4=>array("id"=>4,"roi"=>0), 5=>array("id"=>5,"roi"=>141), 6=>array("id"=>6,"roi"=>2600));$a = array_reverse($array, true);print_r($a);
Output for 5.4.34
Parse error: syntax error, unexpected '$array' (T_VARIABLE) in /in/WRKIY on line 1
Process exited with code 255.
Output for 5.4.0 - 5.4.32
<?php$array = array(0=>array("id"=>9, "roi"=>0), 1=>array("id"=>1,"roi"=>0), 2=>array("id"=>10,"roi"=>0), 3=>array("id"=>14,"roi"=>0), 4=>array("id"=>4,"roi"=>0), 5=>array("id"=>5,"roi"=>141), 6=>array("id"=>6,"roi"=>2600));$a = array_reverse($array, true);print_r($a);