3v4l.org

run code in 300+ PHP versions simultaneously
<?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;

preferences:
33.64 ms | 402 KiB | 5 Q