3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [5,6,7]; [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/fL6hf on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.19
Parse error: syntax error, unexpected '=' in /in/fL6hf on line 4
Process exited with code 255.

preferences:
174.78 ms | 1395 KiB | 33 Q