3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(); $test["abc"] = true; $test["abc"] = $test["abc"] ? $test["abc"] : false; $data = json_encode($test); $test1 = json_decode($data); $val = $test[""abc]; echo "testabc ".$test['abc']." test1abc".$test1["abc"];
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0 - 7.0.1
Parse error: syntax error, unexpected 'abc' (T_STRING), expecting ']' in /in/LC6Sk on line 8
Process exited with code 255.

preferences:
170.41 ms | 1395 KiB | 25 Q