3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $variable1 = "TRUE"; if ($variable == "TRUE"){ $todaytime = date("Y-m-d H:i:s", strtotime('-1 days')); } else { $todaytime = date("Y-m-d H:i:s"); } echo $todaytime;
Output for 5.0.4 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: variable in /in/a1fnC on line 5 2014-05-28 15:59:24
Output for hhvm-3.10.0
Notice: Undefined variable: variable in /in/a1fnC on line -1 2014-05-28 15:59:24
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: variable in /in/a1fnC on line 5 2014-05-28 15:59:24