3v4l.org

run code in 300+ 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.1
Parse error: syntax error, unexpected token "&" in /in/FrkC0 on line 8
Process exited with code 255.

preferences:
151.87 ms | 1283 KiB | 6 Q