3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y[0] = 'Good'; $y[1] = ' morning!'; echo "${y[0]}$[y[1]}"; echo ${y[0]}${y[1]};
Output for 5.6.8 - 5.6.16, 7.0.0 - 7.0.1
Parse error: syntax error, unexpected '$', expecting ',' or ';' in /in/qeCpd on line 6
Process exited with code 255.
Output for 5.5.24 - 5.5.30
Parse error: syntax error, unexpected '[' in /in/qeCpd on line 6
Process exited with code 255.

preferences:
163.52 ms | 1395 KiB | 25 Q