3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lastDate = '1452504837'; $interval = 'P0Y0M1D'; $lastJob = new \Datetime(); $lastJob->setTimestamp($lastDate); $currentJob = new \Datetime(); echo 'Last Sent: '.$lastJob->format('Y/m/d')." | Today: '.$currentJob->format('Y/m/d')."\n"; $interval = new DateInterval($interval); echo 'Interval: '.$interval->format('%y years, %m months, %d days %H:%I:%S')."\n"; $sinceLastJob = $lastJob->diff($currentJob); echo 'Since: '.$sinceLastJob->format('%y years, %m months, %d days %H:%I:%S')."\n"; if ($sinceLastJob > $interval) { echo 'ready to send'; } else { echo 'not ready to send.'; }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.20.0230.04020.20
7.0.10.0100.08320.27
7.0.00.0170.06720.26
5.6.170.0300.08320.55
5.6.160.0170.07320.55
5.6.150.0030.08018.16
5.6.140.0170.07018.19
5.6.130.0100.06718.21
5.6.120.0100.04321.02
5.6.110.0070.09020.98
5.6.100.0170.05321.11
5.6.90.0070.08720.99
5.6.80.0030.04020.28
5.5.310.0170.04020.19
5.5.300.0030.07717.95
5.5.290.0030.04717.95
5.5.280.0070.05320.93
5.5.270.0000.04320.67
5.5.260.0030.07720.86
5.5.250.0300.06320.79
5.5.240.4130.03720.12

preferences:
139.66 ms | 1394 KiB | 7 Q