3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test($thsis, $is, $melon){ echo "ok"; } test("this", "is");
Output for 7.1.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function test(), 2 passed in /in/lKC4A on line 6 and exactly 3 expected in /in/lKC4A:2 Stack trace: #0 /in/lKC4A(6): test('this', 'is') #1 {main} thrown in /in/lKC4A on line 2
Process exited with code 255.
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.0.14
Warning: Missing argument 3 for test(), called in /in/lKC4A on line 6 and defined in /in/lKC4A on line 2 ok
Output for hhvm-3.10.0 - 3.12.0
Warning: test() expects exactly 3 parameters, 2 given in /in/lKC4A on line 3 ok
Output for 4.3.0 - 5.0.5
Warning: Missing argument 3 for test() in /in/lKC4A on line 2 ok