3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo sprintf("%'.9s\n", "foo"); echo sprintf("%'.09s\n", "foo"); Expected result: ---------------- ......foo ......foo Actual result: -------------- ......foo 000000foo
Output for 5.4.0 - 5.4.3
Parse error: syntax error, unexpected 'result' (T_STRING) in /in/lOP0S on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.13
Parse error: syntax error, unexpected T_STRING in /in/lOP0S on line 5
Process exited with code 255.