3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1, 'leo'); list($t,$n) = each($a); var_dump($t,$n);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Call to undefined function each() in /in/3BoFD:4 Stack trace: #0 {main} thrown in /in/3BoFD on line 4
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/3BoFD on line 4 int(0) int(1)
Output for 7.1.0 - 7.1.20, 7.3.32 - 7.3.33
int(0) int(1)

preferences:
140.03 ms | 401 KiB | 154 Q