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", "color", "size");
Output for 4.3.2 - 7.1.0
Warning: sprintf(): Too few arguments in /in/QKOAT on line 2
Output for 4.3.0 - 4.3.1
Warning: sprintf() [http://www.php.net/function.sprintf]: Too few arguments in /in/QKOAT on line 2