3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array(10, 20); list($a, $b) = $array; var_dump($a, $b); unset($a, $b); array($a, $b) = $array; var_dump($a, $b);
Output for 8.2.31, 8.3.0 - 8.3.31, 8.4.1 - 8.4.22, 8.5.0 - 8.5.7
Parse error: syntax error, unexpected token "=" in /in/O7O4q on line 10
Process exited with code 255.

preferences:
48.91 ms | 752 KiB | 3 Q