3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $leftMenu = array( array('link'=>'Домой', 'href'=>'index.php'), array('link'=>'О нас', 'href'=>'about.php'), array('link'=>'Контакты', 'href'=>'contact.php'), array('link'=>'Таблицы умножения', 'href'=>'table.php'), array('link'=>'Калькулятор', 'href'=>'calc.php'), ); foreach ($leftMenu as $item) { vprintf('<a href="%$2s">%$1s</a>' . "\n", $item); }
Output for 5.2.5 - 5.6.28, 7.0.0 - 7.1.0
Warning: vprintf(): Argument number must be greater than zero in /in/P2Mhq on line 11 Warning: vprintf(): Argument number must be greater than zero in /in/P2Mhq on line 11 Warning: vprintf(): Argument number must be greater than zero in /in/P2Mhq on line 11 Warning: vprintf(): Argument number must be greater than zero in /in/P2Mhq on line 11 Warning: vprintf(): Argument number must be greater than zero in /in/P2Mhq on line 11
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid argument: argnum: must be greater than zero in /in/P2Mhq on line 11 Warning: Invalid argument: argnum: must be greater than zero in /in/P2Mhq on line 11 Warning: Invalid argument: argnum: must be greater than zero in /in/P2Mhq on line 11 Warning: Invalid argument: argnum: must be greater than zero in /in/P2Mhq on line 11 Warning: Invalid argument: argnum: must be greater than zero in /in/P2Mhq on line 11
Output for 5.2.1 - 5.2.4
Warning: vprintf(): Argument number must be greater than zero. in /in/P2Mhq on line 11 Warning: vprintf(): Argument number must be greater than zero. in /in/P2Mhq on line 11 Warning: vprintf(): Argument number must be greater than zero. in /in/P2Mhq on line 11 Warning: vprintf(): Argument number must be greater than zero. in /in/P2Mhq on line 11 Warning: vprintf(): Argument number must be greater than zero. in /in/P2Mhq on line 11
Output for 4.3.2 - 4.4.4, 5.0.0 - 5.2.0
Warning: vprintf(): Zero is not a valid argument number in /in/P2Mhq on line 11 Warning: vprintf(): Zero is not a valid argument number in /in/P2Mhq on line 11 Warning: vprintf(): Zero is not a valid argument number in /in/P2Mhq on line 11 Warning: vprintf(): Zero is not a valid argument number in /in/P2Mhq on line 11 Warning: vprintf(): Zero is not a valid argument number in /in/P2Mhq on line 11
Output for 4.4.5 - 4.4.9
Warning: vprintf(): Argument number must be greater then zero. in /in/P2Mhq on line 11 Warning: vprintf(): Argument number must be greater then zero. in /in/P2Mhq on line 11 Warning: vprintf(): Argument number must be greater then zero. in /in/P2Mhq on line 11 Warning: vprintf(): Argument number must be greater then zero. in /in/P2Mhq on line 11 Warning: vprintf(): Argument number must be greater then zero. in /in/P2Mhq on line 11
Output for 4.3.0 - 4.3.1
Warning: vprintf() [http://www.php.net/function.vprintf]: Zero is not a valid argument number in /in/P2Mhq on line 11 Warning: vprintf() [http://www.php.net/function.vprintf]: Zero is not a valid argument number in /in/P2Mhq on line 11 Warning: vprintf() [http://www.php.net/function.vprintf]: Zero is not a valid argument number in /in/P2Mhq on line 11 Warning: vprintf() [http://www.php.net/function.vprintf]: Zero is not a valid argument number in /in/P2Mhq on line 11 Warning: vprintf() [http://www.php.net/function.vprintf]: Zero is not a valid argument number in /in/P2Mhq on line 11