3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo($bar) { $bar = true; } $bar = false; foo(&$bar); var_export($bar);
Output for 8.1.0 - 8.1.27, 8.2.0 - 8.2.14, 8.3.0 - 8.3.5
Parse error: syntax error, unexpected token "&" in /in/FrkC0 on line 8
Process exited with code 255.

preferences:
45.24 ms | 680 KiB | 3 Q