3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_array = array( 0 => "zero", 1 => "one", ) $string = 'test_array[0]'; echo {$string}
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected '$string' (T_VARIABLE) in /in/YhbRt on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/YhbRt on line 7
Process exited with code 255.

preferences:
182.19 ms | 1395 KiB | 64 Q