3v4l.org

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