3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo (new \DateTime())->format('UTC');
based on 4Sa6N
Output for 5.6.28, 7.0.20 - 7.2.0
1445939352CETC
Output for 7.0.6
1462290787CESTC
Output for 7.0.5
1459657253CESTC
Output for 7.0.4
1457629552CETC
Output for 7.0.3
1458323620CETC
Output for 7.0.2
1458692253CETC
Output for 7.0.1
1458792120CETC
Output for 7.0.0
1459054710CESTC
Output for 5.6.21
1462187032CESTC
Output for 5.6.20
1460258408CESTC
Output for 5.6.19
1457399758CETC
Output for 5.6.18
1458035580CETC
Output for 5.6.17
1458423503CETC
Output for 5.6.16
1459143950CESTC
Output for 5.6.15
1459233401CESTC
Output for 5.6.14
1459585808CESTC
Output for 5.6.13
1460724644CESTC
Output for 5.6.12
1461122339CESTC
Output for 5.6.11
1461490500CESTC
Output for 5.6.10
1461584671CESTC
Output for 5.6.9
1461776037CESTC
Output for 5.6.8
1461980839CESTC
Output for 5.5.35
1463937998CESTC
Output for 5.5.34
1460352751CESTC
Output for 5.5.33
1457495559CETC
Output for 5.5.32
1458221740CETC
Output for 5.5.31
1458520619CETC
Output for 5.5.30
1459499410CESTC
Output for 5.5.29
1460862896CESTC
Output for 5.5.28
1461220310CESTC
Output for 5.5.27
1461313261CESTC
Output for 5.5.26
1461680830CESTC
Output for 5.5.25
1461878288CESTC
Output for 5.5.24
1464062026CESTC
Output for 5.4.43 - 5.4.45
1445939362CETC
Output for 5.4.35 - 5.4.42
1445939363CETC
Output for 5.4.28 - 5.4.34
1445939364CETC
Output for 5.4.21 - 5.4.27
1445939365CETC
Output for 5.4.15 - 5.4.20
1445939366CETC
Output for 5.4.7 - 5.4.14
1445939367CETC
Output for 5.4.0 - 5.4.6
1445939368CETC
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/aAnHF on line 2
Process exited with code 255.