3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $contactableFrom = '070000'; $contactableTo = '095500'; $currentTime = (new \DateTime())->format('His'); echo $currentTime; if ($currentTime < $contactableFrom || $currentTime > $contactableTo) { echo 'false'; } else { echo 'true'; }
based on 2t78f
Output for 5.6.28, 7.0.20 - 7.2.0
094654true
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
Output for 5.4.44 - 5.4.45
094659true
Output for 5.4.42 - 5.4.43
094701true
Output for 5.4.41
094702true
Output for 5.4.40
094703true
Output for 5.4.39
094704true
Output for 5.4.37 - 5.4.38
094705true
Output for 5.4.35 - 5.4.36
094706true
Output for 5.4.34
094707true
Output for 5.4.31 - 5.4.32
094708true
Output for 5.4.29 - 5.4.30
094709true
Output for 5.4.26 - 5.4.28
094710true
Output for 5.4.24 - 5.4.25
094711true
Output for 5.4.22 - 5.4.23
094712true
Output for 5.4.20 - 5.4.21
094713true
Output for 5.4.18 - 5.4.19
094714true
Output for 5.4.15 - 5.4.17
094715true
Output for 5.4.13 - 5.4.14
094716true
Output for 5.4.12
094717true
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/RqBDa on line 5
Process exited with code 255.