3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function info() { $data = func_get_args(); $format = array_shift($data); $message = vsprintf($format, $data); echo $message; } info('20% off');
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: vsprintf(): Too few arguments in /in/vTqMv on line 5
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid argument: arguments: (too few) in /in/vTqMv on line 5
Output for 4.3.0 - 4.3.1
Warning: vsprintf() [http://www.php.net/function.vsprintf]: Too few arguments in /in/vTqMv on line 5