3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { echo "TEST\n"; } $a = ['x', 'y', 'z']; [1]++; //test() =& $a; var_dump($a);
Output for 8.1.34, 8.2.27 - 8.2.30, 8.3.0 - 8.3.29, 8.4.1 - 8.4.16, 8.5.0 - 8.5.1
Parse error: syntax error, unexpected token "++" in /in/NTcba on line 9
Process exited with code 255.

preferences:
164.43 ms | 1009 KiB | 7 Q