3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new DateTime('+2 hours'))->format('h-i-s');
based on 5fbt0
Output for 5.6.28, 7.0.20 - 7.2.0
04-26-45
Output for 7.0.6
05-19-22
Output for 7.0.5
06-33-16
Output for 7.0.4
04-11-34
Output for 7.0.3
04-23-40
Output for 7.0.2
02-56-41
Output for 7.0.1
03-10-10
Output for 7.0.0
05-34-12
Output for 5.6.21
12-22-16
Output for 5.6.20
01-46-18
Output for 5.6.19
02-44-03
Output for 5.6.18
02-49-12
Output for 5.6.17
08-52-14
Output for 5.6.16
07-19-32
Output for 5.6.15
08-12-12
Output for 5.6.14
10-48-11
Output for 5.6.13
02-45-18
Output for 5.6.12
03-49-21
Output for 5.6.11
11-06-06
Output for 5.6.10
12-44-24
Output for 5.6.9
05-56-05
Output for 5.6.8
01-38-59
Output for 5.6.7
12-56-33
Output for 5.5.35
03-46-41
Output for 5.5.34
07-43-24
Output for 5.5.33
03-03-24
Output for 5.5.32
08-46-07
Output for 5.5.31
11-44-18
Output for 5.5.30
10-13-44
Output for 5.5.29
04-45-59
Output for 5.5.28
07-06-57
Output for 5.5.27
09-35-05
Output for 5.5.26
03-13-17
Output for 5.5.25
09-14-00
Output for 5.5.24
04-39-27
Output for 5.4.40 - 5.4.45
04-26-58
Output for 5.4.31 - 5.4.39
04-26-59
Output for 5.4.25 - 5.4.30
04-27-00
Output for 5.4.20 - 5.4.24
04-27-01
Output for 5.4.14 - 5.4.19
04-27-02
Output for 5.4.7 - 5.4.13
04-27-03
Output for 5.4.6
04-39-00
Output for 5.4.5
06-10-46
Output for 5.4.4
07-39-49
Output for 5.4.3
09-20-52
Output for 5.4.2
11-04-30
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/5NAJA on line 3
Process exited with code 255.