3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace A; use function foo as exit; function foo() { print "FOO!\n"; exit(); }
Output for 8.2.0 - 8.2.34, 8.3.0 - 8.3.35, 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:
22.69 ms | 1151 KiB | 6 Q