3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test=sprintf('number %1$s %1$s', 'one'); echo $test; $test=sprintf('number %2$s %2$s', 'one', 'two'); echo $test;

preferences:
43.38 ms | 402 KiB | 5 Q