3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var[] ; $var = [1,2,3]; print_r($var);
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.21
Fatal error: Cannot use [] for reading in /in/BD76C on line 3
Process exited with code 255.

preferences:
183.19 ms | 1395 KiB | 57 Q