3v4l.org

run code in 300+ PHP versions simultaneously
<?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;

preferences:
45.07 ms | 402 KiB | 5 Q