3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); echo $date->getTimestamp(); echo $date->getTimestamp();
Output for 5.6.28, 7.0.14 - 7.1.0
13801216011380121601
Output for 7.0.6
14622578311462257831
Output for 7.0.5
14596259421459625942
Output for 7.0.4
14575933011457593301
Output for 7.0.3
14582865631458286563
Output for 7.0.2
14586529021458652902
Output for 7.0.1
14587573271458757327
Output for 7.0.0
14590222141459022214
Output for 5.6.21
14621546801462154680
Output for 5.6.20
14602268031460226803
Output for 5.6.19
14573633821457363382
Output for 5.6.18
14579961121457996112
Output for 5.6.17
14583884371458388437
Output for 5.6.16
14591113661459111366
Output for 5.6.15
14592009311459200931
Output for 5.6.14
14595558991459555899
Output for 5.6.13
14606930961460693096
Output for 5.6.12
14610878601461087860
Output for 5.6.11
14613726361461372636
Output for 5.6.10
14615516321461551632
Output for 5.6.9
14617422991461742299
Output for 5.6.8
14619439891461943989
Output for 5.6.7
14641742971464174297
Output for 5.5.35
14638960781463896078
Output for 5.5.34
14603217421460321742
Output for 5.5.33
14574598681457459868
Output for 5.5.32
14581756311458175631
Output for 5.5.31
14584848121458484812
Output for 5.5.30
14594678161459467816
Output for 5.5.29
14608302251460830225
Output for 5.5.28
14611854351461185435
Output for 5.5.27
14612808861461280886
Output for 5.5.26
14616468121461646812
Output for 5.5.25
14618415091461841509
Output for 5.5.24
14640275031464027503
Output for 5.4.45
14419750361441975036
Output for 5.4.44
14419750331441975033
Output for 5.4.43
14372395981437239598
Output for 5.4.42
14363535941436353594
Output for 5.4.41
14326029681432602968
Output for 5.4.40
14305107141430510714
Output for 5.4.39
14305107131430510713
Output for 5.4.38
14251378601425137860
Output for 5.4.36 - 5.4.37
14230990611423099061
Output for 5.4.34 - 5.4.35
14160672831416067283
Output for 5.4.32
14093893481409389348
Output for 5.4.31
14093893411409389341
Output for 5.3.29, 5.4.30
14093893371409389337
Output for 5.4.28 - 5.4.29
14093893361409389336
Output for 5.4.26 - 5.4.27
14093893441409389344
Output for 5.4.25
14093893431409389343
Output for 5.4.24
14093893421409389342
Output for 5.3.28, 5.4.23
14093893351409389335
Output for 5.4.22
14093893341409389334
Output for 5.4.20 - 5.4.21
14093893331409389333
Output for 5.4.14 - 5.4.19
13801216021380121602
Output for 5.4.2 - 5.4.13
13801216031380121603
Output for 5.3.19 - 5.3.27, 5.4.0 - 5.4.1
13801216041380121604
Output for 5.3.7 - 5.3.18
13801216051380121605
Output for 5.3.0 - 5.3.6
13801216061380121606
Output for 5.2.0 - 5.2.17
Fatal error: Call to undefined method DateTime::getTimestamp() in /in/K0mAQ on line 4
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/K0mAQ 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/K0mAQ 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/K0mAQ on line 3