3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contactableFrom = '070000'; $contactableTo = '095500'; $currentTime = (new \DateTime())->format('His'); echo $currentTime; if ($currentTime < $contactableFrom || $currentTime > $contactableTo) { echo 'false'; } else { echo 'true'; }
Output for 5.6.28, 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
094654true
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 094654true
Output for 7.3.32 - 7.3.33, 8.0.13
084654true
Output for 7.0.6
140807false
Output for 7.0.5
100146false
Output for 7.0.4
220959false
Output for 7.0.3
234520false
Output for 7.0.2
055244false
Output for 7.0.1
085430true
Output for 7.0.0
104718false
Output for 5.6.21
165652false
Output for 5.6.20
090428true
Output for 5.6.19
061956false
Output for 5.6.18
151927false
Output for 5.6.17
025139false
Output for 5.6.16
113706false
Output for 5.6.15
122658false
Output for 5.6.14
180925false
Output for 5.6.13
184844false
Output for 5.6.12
091925true
Output for 5.6.11
154502false
Output for 5.6.10
175046false
Output for 5.6.9
231906false
Output for 5.6.8
074445true
Output for 5.5.35
030735false
Output for 5.5.34
111906false
Output for 5.5.33
092514true
Output for 5.5.32
191857false
Output for 5.5.31
060600false
Output for 5.5.30
141800false
Output for 5.5.29
090610true
Output for 5.5.28
123847false
Output for 5.5.27
141548false
Output for 5.5.26
203229false
Output for 5.5.25
035924false
Output for 5.5.24
103121false

preferences:
167.39 ms | 401 KiB | 198 Q