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.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:
51.7 ms | 766 KiB | 3 Q