3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_POST['weektime']=1; echo "SELECT week, name, date FROM lucky".(intval($_POST['weekcheck'])>0)?" WHERE week ="Week ".str_pad(strval(intval($_POST['weektime'])), 2, "0", STR_PAD_LEFT);." 2014":"";
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected 'Week' (T_STRING) in /in/dKe12 on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/dKe12 on line 6
Process exited with code 255.