3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $variable1 = "TRUE"; if ($variable1 == "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 4.3.0 - 4.4.9, 5.0.3 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
2014-05-27 15:59:35
Output for hhvm-3.10.0
2014-05-27 15:59:36
Output for 5.0.0 - 5.0.2
2014-05-27 00:00:00