3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo sprintf( '%s-%s', array( 'foo', 'bar' ) );
Output for 4.3.2 - 4.4.9, 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/JjW7b on line 2 Warning: sprintf(): Too few arguments in /in/JjW7b on line 2
Output for 5.0.0 - 5.3.29
Warning: sprintf(): Too few arguments in /in/JjW7b on line 2
Output for 4.3.0 - 4.3.1
Notice: Array to string conversion in /in/JjW7b on line 2 Warning: sprintf() [http://www.php.net/function.sprintf]: Too few arguments in /in/JjW7b on line 2