3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { echo "TEST\n"; } ++test(); $a = ['x', 'y', 'z']; //test() =& $a; //var_dump($x);
Output for 8.5.0 - 8.5.1
Fatal error: Can't use function return value in write context in /in/pgROi on line 8 Stack trace: #0 {main}
Process exited with code 255.
Output for 8.1.34, 8.2.27 - 8.2.30, 8.3.0 - 8.3.29, 8.4.1 - 8.4.16
Fatal error: Can't use function return value in write context in /in/pgROi on line 8
Process exited with code 255.

preferences:
164.05 ms | 1010 KiB | 7 Q