3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = ">>>?<<<%s>>>?<<<>>>?<<<"; $arr = array('Hello', 'World', '!'); vprintf(str_replace(array('%', '?'), array('%%', '%s'), $string), $subs);
Output for 5.3.28 - 5.3.29, 5.4.20 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: subs in /in/tJfav on line 5 Warning: vprintf(): Too few arguments in /in/tJfav on line 5
Output for hhvm-3.12.0
Notice: Undefined variable: subs in /in/tJfav on line -1 Warning: Invalid argument: arguments: (too few) in /in/tJfav on line -1
Output for hhvm-3.10.0
Notice: Undefined variable: subs in /in/tJfav on line 5 Warning: Invalid argument: arguments: (too few) in /in/tJfav on line 5
Output for 5.0.4 - 5.3.27, 5.4.0 - 5.4.19
Notice: Undefined variable: subs in /in/1kCXd on line 5 Warning: vprintf(): Too few arguments in /in/1kCXd on line 5
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: subs in /in/1kCXd on line 5 Warning: vprintf(): Too few arguments in /in/1kCXd on line 5
Output for 4.3.1
Notice: Undefined variable: subs in /in/1kCXd on line 5 Warning: vprintf() [http://www.php.net/function.vprintf]: Too few arguments in /in/1kCXd on line 5
Output for 4.3.0
Notice: Undefined variable: subs in /in/tJfav on line 5 Warning: vprintf() [http://www.php.net/function.vprintf]: Too few arguments in /in/tJfav on line 5