3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = Array( [core.login.offline] => Array ( [6] => 1 ), [core.admin] => Array ( [20] => 1, [1] => 1, [8] => 1, [53] => 1 ) ); print_r ($array, true);
based on sunmu
Output for 7.0.0 - 7.0.2
Fatal error: Illegal offset type in /in/6CRR3 on line 7
Process exited with code 255.
Output for 5.4.11 - 5.6.28
Notice: Use of undefined constant core - assumed 'core' in /in/6CRR3 on line 4 Notice: Use of undefined constant login - assumed 'login' in /in/6CRR3 on line 4 Notice: Use of undefined constant offline - assumed 'offline' in /in/6CRR3 on line 4 Warning: Illegal offset type in /in/6CRR3 on line 7 Warning: Illegal offset type in /in/6CRR3 on line 7 Notice: Use of undefined constant core - assumed 'core' in /in/6CRR3 on line 9 Notice: Use of undefined constant admin - assumed 'admin' in /in/6CRR3 on line 9 Warning: Illegal offset type in /in/6CRR3 on line 11 Warning: Illegal offset type in /in/6CRR3 on line 12 Warning: Illegal offset type in /in/6CRR3 on line 13 Warning: Illegal offset type in /in/6CRR3 on line 15 Warning: Illegal offset type in /in/6CRR3 on line 16
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/6CRR3 on line 4
Process exited with code 255.