3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = Array ( ['default_config'] => Array ( ['influence_rate_limiting'] => false, ['observe_rate_limiting'] => false, ), ['push_array'] => Array ( [0] => Array ( ['target'] => Array ( ['user_id'] => 'zrUGzotNFz0' ), ['notification'] => Array ( ['alert'] => 'hola que tal', ['sound'] => 'levelup.caf', ) ) ) ); echo json_encode($a);
based on NET0E
Output for 7.0.0 - 7.0.1
Fatal error: Illegal offset type in /in/2u6G1 on line 9
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Warning: Illegal offset type in /in/2u6G1 on line 7 Warning: Illegal offset type in /in/2u6G1 on line 8 Warning: Illegal offset type in /in/2u6G1 on line 9 Warning: Illegal offset type in /in/2u6G1 on line 18 Warning: Illegal offset type in /in/2u6G1 on line 18 Warning: Illegal offset type in /in/2u6G1 on line 22 Warning: Illegal offset type in /in/2u6G1 on line 23 Warning: Illegal offset type in /in/2u6G1 on line 25 Warning: Illegal offset type in /in/2u6G1 on line 26 Warning: Illegal offset type in /in/2u6G1 on line 28 []
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/2u6G1 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[', expecting ')' in /in/2u6G1 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/2u6G1 on line 5
Process exited with code 255.