3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A; use function foo as exit; function foo() { print "FOO!\n"; exit(); }
Output for 8.2.0 - 8.2.29, 8.3.0 - 8.3.24, 8.4.1 - 8.4.11
Parse error: syntax error, unexpected token "exit", expecting identifier in /in/QukZb on line 5
Process exited with code 255.

preferences:
152.54 ms | 1374 KiB | 6 Q