3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new \DateTime("now"); $hourString = $date->format('H:i'); if (strtotime($hourString) > strtotime('12:00:00') && strtotime($hourString) < strtotime('23:59:59')) { echo($hourString); }

preferences:
64.68 ms | 402 KiB | 5 Q