3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = new \DateTime(); echo $x->getTimestamp();
based on eqL0l
Output for 5.6.28, 7.0.20 - 7.2.0
1448876951
Output for 7.0.6
1462297729
Output for 7.0.5
1459663737
Output for 7.0.4
1457636568
Output for 7.0.3
1458332610
Output for 7.0.2
1458700636
Output for 7.0.1
1458798882
Output for 7.0.0
1459061360
Output for 5.6.21
1462193818
Output for 5.6.20
1460265001
Output for 5.6.19
1457406919
Output for 5.6.18
1458043530
Output for 5.6.17
1458430823
Output for 5.6.16
1459150706
Output for 5.6.15
1459240082
Output for 5.6.14
1459592295
Output for 5.6.13
1460731763
Output for 5.6.12
1461129370
Output for 5.6.11
1461498048
Output for 5.6.10
1461591864
Output for 5.6.9
1461783181
Output for 5.6.8
1461987732
Output for 5.5.35
1463953616
Output for 5.5.34
1460359285
Output for 5.5.33
1457503666
Output for 5.5.32
1458230182
Output for 5.5.31
1458528348
Output for 5.5.30
1459506058
Output for 5.5.29
1460869646
Output for 5.5.28
1461227516
Output for 5.5.27
1461320082
Output for 5.5.26
1461687916
Output for 5.5.25
1461887324
Output for 5.5.24
1464069598
Output for 5.4.44 - 5.4.45
1448876954
Output for 5.4.43
1448876955
Output for 5.4.40 - 5.4.42
1448876956
Output for 5.4.37 - 5.4.39
1448876957
Output for 5.4.34 - 5.4.36
1448876958
Output for 5.3.29, 5.4.28 - 5.4.32
1448876959
Output for 5.4.23 - 5.4.27
1448876960
Output for 5.3.28, 5.4.18 - 5.4.22
1448876961
Output for 5.3.23 - 5.3.27, 5.4.12 - 5.4.17
1448876962
Output for 5.3.20 - 5.3.22, 5.4.10 - 5.4.11
1448876963