3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new DateTime(); var_dump($d->format('U'));
based on akhc0
Output for 5.4.0 - 5.6.38, hhvm-3.10.1 - 3.12.14, hhvm-3.15.4, hhvm-3.18.5, hhvm-3.21.0, hhvm-3.22.0, 7.0.0 - 7.1.8, 7.1.10 - 7.3.1
string(10) "1545720221"
Output for hhvm-3.13.2, hhvm-3.17.3 - 3.18.4, hhvm-3.19.2 - 3.20.2, hhvm-3.21.3, 7.1.9
string(10) "1545720222"
Output for 5.3.27 - 5.3.29
string(10) "1446213332"
Output for 5.3.19 - 5.3.26
string(10) "1446213333"