3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime('1 MINUTE'); echo $dt->format('U');
Output for 5.6.28, 7.0.14 - 7.1.0
1405343788
Output for 7.0.6
1462236476
Output for 7.0.5
1459605809
Output for 7.0.4
1457570241
Output for 7.0.3
1458262064
Output for 7.0.2
1458559338
Output for 7.0.1
1458732919
Output for 7.0.0
1459000913
Output for hhvm-3.12.0
1459338460
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.21
1462132190
Output for 5.6.20
1460193340
Output for 5.6.19
1457304825
Output for 5.6.18
1457954120
Output for 5.6.17
1458364583
Output for 5.6.16
1459089984
Output for 5.6.15
1459179602
Output for 5.6.14
1459534638
Output for 5.6.13
1460671583
Output for 5.6.12
1461064579
Output for 5.6.11
1461349952
Output for 5.6.10
1461528734
Output for 5.6.9
1461720161
Output for 5.6.8
1461920275
Output for 5.6.7
1464120179
Output for 5.5.35
1463872400
Output for 5.5.34
1460301132
Output for 5.5.33
1457436473
Output for 5.5.32
1458148208
Output for 5.5.31
1458461337
Output for 5.5.30
1459446072
Output for 5.5.29
1460808820
Output for 5.5.28
1461162799
Output for 5.5.27
1461258187
Output for 5.5.26
1461623525
Output for 5.5.25
1461818363
Output for 5.5.24
1462018104
Output for 5.4.45
1442790419
Output for 5.4.44
1442790339
Output for 5.4.43
1442790245
Output for 5.4.42
1442790216
Output for 5.4.41
1442790234
Output for 5.4.40
1442790132
Output for 5.4.39
1442790098
Output for 5.4.38
1425511383
Output for 5.4.36 - 5.4.37
1425511377
Output for 5.4.34 - 5.4.35
1425511376
Output for 5.4.31 - 5.4.32
1410635324
Output for 5.4.24 - 5.4.30
1405343795
Output for 5.4.10 - 5.4.23
1405343796
Output for 5.3.25 - 5.3.28, 5.4.0 - 5.4.9
1405343797
Output for 5.3.29
1410635322
Output for 5.3.11 - 5.3.24
1405343798
Output for 5.2.9 - 5.3.10
1405343799
Output for 5.2.0 - 5.2.8
1405343800
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/OK8kr on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/OK8kr on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/OK8kr on line 3