3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $timestamp = strtotime('now'); $current_time = strftime('%Y%m%d', time()); echo $timestamp . "\n"; echo $current_time . "\n"; echo (strftime('%Y%m%d', $timestamp) - $current_time) === 0;
based on Ea769
Output for 4.3.0 - 4.4.9, 5.0.3 - 7.2.0
1430144674 20150427 1
Output for 5.0.0 - 5.0.2
1430085600 20150427 1