3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"1":1,"5":1}''; $array_val=json_decode($json, true); echo $array_val[1];
Output for 5.6.0 - 5.6.25, 7.0.0 - 7.0.10
Parse error: syntax error, unexpected '';' (T_ENCAPSED_AND_WHITESPACE) in /in/C7OVT on line 2
Process exited with code 255.

preferences:
180.25 ms | 1395 KiB | 44 Q