3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3); list() = $a; list(,,) = $a; list($x, list(), $y) = $a;
Output for 7.0.0 - 7.0.1
Fatal error: Cannot use empty list in /in/jnLI3 on line 4
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28

preferences:
169.6 ms | 1395 KiB | 36 Q