3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function basicTraining($work) { if ($work > 8) { echo "After a hard day of basic training, you could eat a rattlesnake!"; } return true; } basicTraining(); ?>
based on J8I0e
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function basicTraining(), 0 passed in /in/orZYi on line 10 and exactly 1 expected in /in/orZYi:3 Stack trace: #0 /in/orZYi(10): basicTraining() #1 {main} thrown in /in/orZYi on line 3
Process exited with code 255.
Output for 5.3.20 - 7.0.20
Warning: Missing argument 1 for basicTraining(), called in /in/orZYi on line 10 and defined in /in/orZYi on line 3 Notice: Undefined variable: work in /in/orZYi on line 4