3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function f($req, $opt = null) { printf('$req: %d; $opt: %d; number of params: %d'."\n", $req, $opt); } f(1); f(1, 2); ?>
Output for 4.3.2 - 5.6.25, 7.0.20, 7.1.5 - 7.2.0
Warning: printf(): Too few arguments in /in/KI471 on line 4 Warning: printf(): Too few arguments in /in/KI471 on line 4
Output for 7.0.0 - 7.0.14, 7.1.0
Warning: printf(): Too few arguments in /in/KI471 on line 3 Warning: printf(): Too few arguments in /in/KI471 on line 3
Output for 4.3.0 - 4.3.1
Warning: printf() [http://www.php.net/function.printf]: Too few arguments in /in/KI471 on line 4 Warning: printf() [http://www.php.net/function.printf]: Too few arguments in /in/KI471 on line 4