3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'Bob likes %s and %s.'; echo(sprintf($str, 'cats', 'dogs'));
Output for 4.3.0 - 7.1.0
Bob likes cats and dogs.