3v4l.org

run code in 300+ PHP versions simultaneously
<?php sprintf('%$1s, %2$s %1$s', "Sir", "Yes");

preferences:
84.39 ms | 407 KiB | 5 Q