3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(int $i /* = null */) {} foo();
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Fatal error: Uncaught ArgumentCountError: Too few arguments to function foo(), 0 passed in /in/ZfqBS on line 5 and exactly 1 expected in /in/ZfqBS:3 Stack trace: #0 /in/ZfqBS(5): foo() #1 {main} thrown in /in/ZfqBS on line 3
Process exited with code 255.

preferences:
58.8 ms | 402 KiB | 62 Q