3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_POST['weekcheck']=3; $one_and_only_sql = "SELECT week, name, date FROM lucky".(intval($_POST['weekcheck'])>0)?" WHERE week = 'Week ".str_pad(strval(intval($_POST['weekcheck'])), 2, "0", STR_PAD_LEFT)." 2014'":""; echo $one_and_only_sql;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
WHERE week = 'Week 03 2014'