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.2.34, 8.3.0 - 8.3.35, 8.4.1 - 8.4.26, 8.5.0 - 8.5.7
Parse error: syntax error, unexpected token "=" in /in/O7O4q on line 10
Process exited with code 255.

preferences:
27.82 ms | 1136 KiB | 6 Q