3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //echo sprintf("CONCAT(product.%1s, (case when product.%1s != '' then CONCAT(' - ',product.%1s) else '' end), (case when product.%1s != '' then CONCAT(' - ',product.%1s) else '' end))", "name"); echo sprintf('teste %1$s, 3: %3$s, 2: %2$s', "1", "2", "3");
Output for 4.3.0 - 7.2.0
teste 1, 3: 3, 2: 2