3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $shop = array( ["core.admin" => array( [[53] => 1])], array("core.admin", 0.75 , 25), array("orchid", 1.15 , 7) ); $output = print_r ($shop, true); echo "$output";
based on 5JdnW
Output for 7.0.0 - 7.0.2
Fatal error: Illegal offset type in /in/jFiXZ on line 3
Process exited with code 255.
Output for 5.4.11 - 5.6.28
Warning: Illegal offset type in /in/jFiXZ on line 3 Array ( [0] => Array ( [core.admin] => Array ( [0] => Array ( ) ) ) [1] => Array ( [0] => core.admin [1] => 0.75 [2] => 25 ) [2] => Array ( [0] => orchid [1] => 1.15 [2] => 7 ) )
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/jFiXZ on line 3
Process exited with code 255.