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 mnFIq
Output for 7.2.0
Warning: Use of undefined constant core - assumed 'core' (this will throw an Error in a future version of PHP) in /in/DpM5n on line 3 Warning: Use of undefined constant login - assumed 'login' (this will throw an Error in a future version of PHP) in /in/DpM5n on line 3 Warning: Use of undefined constant offline - assumed 'offline' (this will throw an Error in a future version of PHP) in /in/DpM5n on line 3 Warning: Illegal offset type in /in/DpM5n 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.4.11 - 7.1.10
Notice: Use of undefined constant core - assumed 'core' in /in/DpM5n on line 3 Notice: Use of undefined constant login - assumed 'login' in /in/DpM5n on line 3 Notice: Use of undefined constant offline - assumed 'offline' in /in/DpM5n on line 3 Warning: Illegal offset type in /in/DpM5n 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/DpM5n on line 3
Process exited with code 255.