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.2.0
3993
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