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') && strtotime($hourString) > strtotime('00:00:00') && strtotime($hourString) < strtotime('07:00:00') && ) { echo($hourString); }
Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.24, 7.3.0 - 7.3.11
Parse error: syntax error, unexpected ')' in /in/udkVs on line 9
Process exited with code 255.

preferences:
173.77 ms | 1395 KiB | 53 Q