3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Everything you enter here will be executed by our servers. Try it! echo time(); echo "\n"; echo strtotime('1 day ago'); echo "\n"; echo strtotime('1 day ago'); echo "\n"; echo time() - strtotime('1 day ago'); echo "\n"; echo 24*60*60; ?>
Output for 4.3.0 - 4.4.9, 5.0.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1374881404 1374795004 1374795004 86400 86400
Output for 5.0.0 - 5.0.2
1374881404 1374789600 1374789600 91804 86400