3v4l.org

run code in 150+ 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("CONCAT(product.%1s, (case when product.%2s != '' then CONCAT(' - ',product.color) else '' end), (case when product.size != '' then CONCAT(' - ',product.size) else '' end))", "name", "color");
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
CONCAT(product.name, (case when product.color != '' then CONCAT(' - ',product.color) else '' end), (case when product.size != '' then CONCAT(' - ',product.size) else '' end))
Output for hhvm-3.10.0

Process exited with code 153.