3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo sprintf('third arg: %s$3 first arg: %s$1 second arg: %s$2', 'foo', 'bar', 'baz');
Output for 4.3.0 - 7.2.0
third arg: foo$3 first arg: bar$1 second arg: baz$2