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.3.0 - 5.3.28, 5.4.0 - 5.4.27
Parse error: syntax error, unexpected '{' in /in/HMZVA on line 9
Process exited with code 255.

preferences:
186.7 ms | 1395 KiB | 64 Q