3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d = new DateTimeImmutable(); print $d->getTimestamp(); sleep(1); print $d->getTimestamp();
Output for 5.6.28, 7.0.14 - 7.1.0
14139006401413900640
Output for 7.0.6
14622641891462264189
Output for 7.0.5
14596317221459631722
Output for 7.0.4
14575999471457599947
Output for 7.0.3
14582935611458293561
Output for 7.0.2
14586606621458660662
Output for 7.0.1
14587635581458763558
Output for 7.0.0
14590282841459028284
Output for hhvm-3.12.0
14577852721457785272
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.21
14621609451462160945
Output for 5.6.20
14602329121460232912
Output for 5.6.19
14573699761457369976
Output for 5.6.18
14580040111458004011
Output for 5.6.17
14583951661458395166
Output for 5.6.16
14591181221459118122
Output for 5.6.15
14592078371459207837
Output for 5.6.14
14595617631459561763
Output for 5.6.13
14606990391460699039
Output for 5.6.12
14610943511461094351
Output for 5.6.11
14613788661461378866
Output for 5.6.10
14615579481461557948
Output for 5.6.9
14617487031461748703
Output for 5.6.8
14619508161461950816
Output for 5.5.35
14639026131463902613
Output for 5.5.34
14603277431460327743
Output for 5.5.33
14574669921457466992
Output for 5.5.32
14581824081458182408
Output for 5.5.31
14584914701458491470
Output for 5.5.30
14594740431459474043
Output for 5.5.29
14608362751460836275
Output for 5.5.28
14611925281461192528
Output for 5.5.27
14612871891461287189
Output for 5.5.26
14616531631461653163
Output for 5.5.25
14618490301461849030
Output for 5.5.24
14640351051464035105
Output for 5.0.0 - 5.4.45
Fatal error: Class 'DateTimeImmutable' not found in /in/6PBsV on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetimeimmutable in /in/6PBsV on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetimeimmutable in /in/6PBsV on line 2