3v4l.org

run code in 150+ 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
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 - 5.6.21, 7.0.0 - 7.0.14
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 hhvm-3.12.0
Warning: print_name() expects exactly 3 parameters, 1 given in /in/lI6XW on line 3 Notice: Undefined variable: last in /in/lI6XW on line 3 Notice: Undefined variable: middle in /in/lI6XW on line 3 , joel
Output for hhvm-3.10.0

Process exited with code 153.
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