3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function __construct(\DateTime $data = null) { $data = is_null($data) ? new \DateTime() : $data; var_export($data->getTimestamp()); } } new A(new \DateTime()); new A;
based on c7NSh
Output for 5.6.28, 7.0.20 - 7.2.0
14453527311445352731
Output for 7.0.6
14622279161462227916
Output for 7.0.5
14595983431459598343
Output for 7.0.4
14575605341457560534
Output for 7.0.3
14582532341458253234
Output for 7.0.2
14585510081458551008
Output for 7.0.1
14587225501458722550
Output for 7.0.0
14589928931458992893
Output for 5.6.21
14621238621462123862
Output for 5.6.20
14601860801460186080
Output for 5.6.19
14572919701457291970
Output for 5.6.18
14579407021457940702
Output for 5.6.17
14583561691458356169
Output for 5.6.16
14590819381459081938
Output for 5.6.15
14591717861459171786
Output for 5.6.14
14595272021459527202
Output for 5.6.13
14606646161460664616
Output for 5.6.12
14610572231461057223
Output for 5.6.11
14613427321461342732
Output for 5.6.10
14615214261461521426
Output for 5.6.9
14617124901461712490
Output for 5.6.8
14619125451461912545
Output for 5.6.7
14641078021464107802
Output for 5.5.35
14638634461463863446
Output for 5.5.34
14602926621460292662
Output for 5.5.33
14574280441457428044
Output for 5.5.32
14580653331458065333
Output for 5.5.31
14584530361458453036
Output for 5.5.30
14594385451459438545
Output for 5.5.29
14608015581460801558
Output for 5.5.28
14611549921461154992
Output for 5.5.27
14612509861461250986
Output for 5.5.26
14616158821461615882
Output for 5.5.25
14618107031461810703
Output for 5.5.24
14620110601462011060
Output for 5.4.43 - 5.4.45
14453527411445352741
Output for 5.4.35 - 5.4.42
14453527421445352742
Output for 5.4.26 - 5.4.34
14453527431445352743
Output for 5.4.19 - 5.4.25
14453527441445352744
Output for 5.4.12 - 5.4.18
14453527451445352745
Output for 5.4.5 - 5.4.11
14453527461445352746
Output for 5.3.28 - 5.4.4
14453527471445352747
Output for 5.3.20 - 5.3.27
14453527481445352748
Output for 5.3.19
14453527491445352749