3v4l.org

run code in 500+ PHP versions simultaneously
<?php $poster_xd = ['test']; while(list($code_name,) = each($poster_xd)) { $poster_xd[$code_name] = 'y'; } var_dump($poster_xd);
Output for 8.1.23 - 8.1.34, 8.2.10 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Fatal error: Uncaught Error: Call to undefined function each() in /in/mTeIL:4 Stack trace: #0 {main} thrown in /in/mTeIL on line 4
Process exited with code 255.
Output for 7.1.31
array(1) { [0]=> string(1) "y" }

preferences:
85.21 ms | 858 KiB | 4 Q