3v4l.org

run code in 300+ PHP versions simultaneously
<?php $device_time_stamp = strtotime('2014-05-15T12:19:37.000Z'); $last_update_threshold_time_stamp = strtotime('-10 minutes'); $result = ($device_time_stamp <= $last_update_threshold_time_stamp ? '1' : '0'); echo $result;

preferences:
34.15 ms | 402 KiB | 5 Q