3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); echo (int)$date->format('u');
based on VpfQp
Output for 7.3.1
37308
Output for 7.3.0
108304
Output for 7.2.13
12209
Output for 7.2.12
29797
Output for 7.2.11
48526
Output for 7.2.10
55258
Output for 7.2.9
143
Output for 7.2.8
19888
Output for 7.2.7
135279
Output for 7.2.6
102388
Output for 7.2.5
43985
Output for 7.2.4
115660
Output for 7.2.3
36285
Output for 7.2.2
81
Output for 7.2.1
93181
Output for 7.2.0
80
Output for 7.1.25
27129
Output for 7.1.20
2216
Output for 7.1.10
3719
Output for 7.1.7
2839
Output for 7.1.6
12227
Output for 7.1.5
11155
Output for 7.1.0
4073
Output for 5.3.18 - 7.0.20
0