3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [5,6,7]; list (null,$b) = [$a]; var_dump ($a);
Output for 7.1.0 - 7.1.5
Fatal error: Assignments can only happen to writable values in /in/53rtr on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.19
Parse error: syntax error, unexpected ',', expecting '[' in /in/53rtr on line 4
Process exited with code 255.

preferences:
171.46 ms | 1411 KiB | 33 Q