3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function myFunc($i) { echo "{$i}\n"; } $i = 0; ($i < 20) ? myFunc() : exit('Bye bye.');
Output for 7.1.0 - 7.1.7
Fatal error: Uncaught ArgumentCountError: Too few arguments to function myFunc(), 0 passed in /in/sEs0F on line 6 and exactly 1 expected in /in/sEs0F:3 Stack trace: #0 /in/sEs0F(6): myFunc() #1 {main} thrown in /in/sEs0F on line 3
Process exited with code 255.
Output for 5.1.0 - 7.0.20
Warning: Missing argument 1 for myFunc(), called in /in/sEs0F on line 6 and defined in /in/sEs0F on line 3 Notice: Undefined variable: i in /in/sEs0F on line 3
Output for 5.0.0 - 5.0.5
Warning: Missing argument 1 for myFunc() in /in/sEs0F on line 3
Output for 4.3.0 - 4.4.8
Warning: Missing argument 1 for myfunc() in /in/sEs0F on line 3