3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $lastDate = '1452504837'; $interval = 'P0Y0M3D'; $interval = new DateInterval($interval); echo 'Interval: '.$interval->format('%y years, %m months, %d days %H:%I:%S')."\n"; $lastJob = new \Datetime(); $lastJob->setTimestamp($lastDate); $currentJob = new \Datetime(); $nextJob = $lastJob->add($interval); echo 'Last Sent: '.$lastJob->format('Y/m/d').' | Next Job: '.$nextJob->format('Y/m/d') . ' | Today: '.$currentJob->format('Y/m/d')."\n"; if ($nextJob <= $currentJob) { echo 'ready to send'; } else { echo 'not ready to send.'; }
based on QSL2P

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0000.01517.01
7.2.00.0030.01019.79
7.1.200.0120.00315.93
7.1.100.0100.00518.13
7.1.70.0000.00717.29
7.1.60.0170.00319.40
7.1.50.0070.01017.18
7.1.00.0070.07022.31
7.0.200.0400.01014.56
7.0.60.0370.07021.73
7.0.50.0070.08017.93
7.0.40.0100.07720.19
7.0.30.0230.08020.18
7.0.20.0230.06320.16
7.0.10.0070.09020.18
7.0.00.0100.08320.13
5.6.280.0030.05321.04
5.6.210.0100.07720.60
5.6.200.0100.08018.20
5.6.190.0000.06320.63
5.6.180.0300.04020.49
5.6.170.0400.08320.44
5.6.160.0030.07020.50
5.6.150.0070.03718.18
5.6.140.0100.06318.12
5.6.130.0030.08718.08
5.6.120.0030.08020.86
5.6.110.0100.04721.13
5.6.100.0030.08021.13
5.6.90.0000.09020.87
5.6.80.0070.08020.48
5.5.350.0300.07020.41
5.5.340.0100.08018.01
5.5.330.0070.03720.42
5.5.320.0270.05020.27
5.5.310.0130.04320.20
5.5.300.0100.07317.92
5.5.290.0070.04017.91
5.5.280.0070.08320.96
5.5.270.0030.04020.96
5.5.260.0070.05320.79
5.5.250.0070.08020.69
5.5.240.4130.03720.15
5.4.450.0730.03719.20
5.4.440.0630.04719.59
5.4.430.0670.05719.51
5.4.420.0500.05319.45
5.4.410.0400.06719.31
5.4.400.0530.05319.11
5.4.390.0370.04719.04
5.4.380.0630.05018.85
5.4.370.0300.05019.20
5.4.360.0170.06019.04
5.4.350.0370.03718.89
5.4.340.0100.06719.21
5.4.320.0170.06019.13
5.4.310.0130.06019.19
5.4.300.0400.05019.21
5.4.290.0530.05318.84
5.4.280.0600.04719.13
5.4.270.0270.05719.04
5.4.260.0670.04019.22
5.4.250.0470.06019.12
5.4.240.0770.04319.09
5.4.230.0530.05718.84
5.4.220.0470.06719.25
5.4.210.0530.05718.85
5.4.200.0500.06319.20
5.4.190.0630.04719.04
5.4.180.0500.05019.29
5.4.170.0630.05019.10
5.4.160.0630.05319.24
5.4.150.0530.05718.88
5.4.140.0570.05016.44
5.4.130.0630.05016.31
5.4.120.0630.04016.42
5.4.110.0630.05016.28
5.3.290.0230.05314.67
5.3.280.0700.04314.73
5.3.270.0470.05714.53
5.3.260.0370.05714.42
5.3.250.0670.04714.43
5.3.240.0570.05714.68
5.3.230.0530.05714.57
5.3.220.0530.05714.62
5.3.210.0730.04714.49