3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo ($firstname) { } foo();
Output for 7.1.7, 7.3.24 - 7.3.33, 7.4.12 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
Fatal error: Uncaught ArgumentCountError: Too few arguments to function foo(), 0 passed in /in/MiJW9 on line 7 and exactly 1 expected in /in/MiJW9:3 Stack trace: #0 /in/MiJW9(7): foo() #1 {main} thrown in /in/MiJW9 on line 3
Process exited with code 255.

preferences:
110.19 ms | 403 KiB | 120 Q