3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set("America/Halifax"); $current_hour = idate('H'); echo ($current_hour + 4) % 24; ?>
based on 4GEp3
Output for 5.6.13 - 5.6.14, 5.6.28, 7.0.14 - 7.1.0
16
Output for 5.5.27, 5.5.30, 7.0.6
12
Output for 5.1.2 - 5.5.24, 7.0.0, 7.0.5
8
Output for 5.6.9, 7.0.4
20
Output for 7.0.3
22
Output for 5.5.31, 5.6.19, 7.0.2
4
Output for 5.5.29, 5.5.33, 5.6.12, 5.6.20, 7.0.1
7
Output for hhvm-3.12.0
19
Output for hhvm-3.10.0
6
Output for 5.6.10, 5.6.21
15
Output for 5.6.18
14
Output for 5.5.25, 5.6.17
1
Output for 5.5.34, 5.6.16
9
Output for 5.5.28, 5.6.15
10
Output for 5.1.0 - 5.1.1, 5.6.11
13
Output for 5.6.8
5
Output for 5.5.35
0
Output for 5.5.26, 5.5.32
18
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/LJKHm on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_default_timezone_set() in /in/LJKHm on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: date_default_timezone_set() in /in/LJKHm on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_default_timezone_set() in /in/LJKHm on line 2