3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $number = 123; $txt = sprintf("With 2 decimals: %1$ <br>With no decimals: ",$number); echo $txt;
based on QVi7v
Output for 5.6.0 - 7.3.0beta1
With 2 decimals: <br>With no decimals: