3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function print_name($first, $middle, $last) { echo $last . ', ' . $first . ' ' . $middle; } print_name('joel');
based on rrs5r
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function print_name(), 1 passed in /in/lI6XW on line 6 and exactly 3 expected in /in/lI6XW:2 Stack trace: #0 /in/lI6XW(6): print_name('joel') #1 {main} thrown in /in/lI6XW on line 2
Process exited with code 255.
Output for 5.1.0 - 7.0.20
Warning: Missing argument 2 for print_name(), called in /in/lI6XW on line 6 and defined in /in/lI6XW on line 2 Warning: Missing argument 3 for print_name(), called in /in/lI6XW on line 6 and defined in /in/lI6XW on line 2 Notice: Undefined variable: last in /in/lI6XW on line 3 Notice: Undefined variable: middle in /in/lI6XW on line 3 , joel
Output for 4.3.0 - 5.0.5
Warning: Missing argument 2 for print_name() in /in/lI6XW on line 2 Warning: Missing argument 3 for print_name() in /in/lI6XW on line 2 , joel