3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lastDate = '1452699936'; $interval = 'P0Y0M3D'; //create objects from strings $interval = new \DateInterval($interval); echo 'Interval: '.$interval->format('%y years, %m months, %d days')."\n"; //last sent $lastJob = new \Datetime(); $lastJob->setTimestamp($lastDate); //las sent + interval $nextJob = new \Datetime(); $nextJob->setTimestamp($lastDate); $nextJob->add($interval); //now $currentJob = new \Datetime(); 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 'not ready to send.'; } else { echo '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)
8.3.60.0140.00716.75
8.3.50.0040.01116.59
8.3.40.0060.00918.97
8.3.30.0140.00018.83
8.3.20.0080.00020.14
8.3.10.0040.00421.75
8.3.00.0080.00023.78
8.2.180.0170.00317.00
8.2.170.0110.00422.96
8.2.160.0110.00320.39
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00420.78
8.2.120.0040.00426.35
8.2.110.0030.00721.03
8.2.100.0090.00318.16
8.2.90.0080.00019.26
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0060.00318.04
8.2.50.0040.00418.09
8.2.40.0040.00420.47
8.2.30.0030.00319.44
8.2.20.0040.00417.87
8.2.10.0040.00418.07
8.2.00.0090.00018.21
8.1.280.0070.01425.92
8.1.270.0130.00622.19
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0100.00022.66
8.1.230.0120.00017.89
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0000.00817.34
8.1.190.0090.00017.48
8.1.180.0040.00418.10
8.1.170.0080.00018.84
8.1.160.0000.00720.84
8.1.150.0000.00719.00
8.1.140.0040.00419.66
8.1.130.0000.00717.69
8.1.120.0050.00317.68
8.1.110.0040.00417.63
8.1.100.0070.00017.65
8.1.90.0080.00317.63
8.1.80.0030.00617.55
8.1.70.0030.00317.59
8.1.60.0030.00917.65
8.1.50.0060.00317.66
8.1.40.0050.00217.71
8.1.30.0040.00417.84
8.1.20.0030.00617.78
8.1.10.0030.00617.70
8.1.00.0050.00317.61
8.0.300.0080.00018.77
8.0.290.0070.00017.00
8.0.280.0030.00318.38
8.0.270.0070.00017.42
8.0.260.0070.00017.32
8.0.250.0080.00017.18
8.0.240.0000.00717.10
8.0.230.0070.00017.13
8.0.220.0000.00917.04
8.0.210.0070.00017.16
8.0.200.0030.00317.12
8.0.190.0060.00317.18
8.0.180.0050.00317.15
8.0.170.0040.00417.01
8.0.160.0040.00417.05
8.0.150.0000.00717.07
8.0.140.0070.00016.96
8.0.130.0030.00313.37
8.0.120.0040.00417.06
8.0.110.0040.00417.07
8.0.100.0040.00417.12
8.0.90.0050.00317.12
8.0.80.0000.01617.12
8.0.70.0000.00716.97
8.0.60.0000.00817.11
8.0.50.0040.00416.88
8.0.30.0080.01017.16
8.0.20.0120.00717.41
8.0.10.0000.00717.09
8.0.00.0100.00717.04
7.4.330.0050.00016.88
7.4.320.0040.00416.79
7.4.300.0030.00316.69
7.4.290.0050.00316.72
7.4.280.0080.00016.75
7.4.270.0030.00316.67
7.4.260.0040.00416.53
7.4.250.0000.00816.71
7.4.240.0040.00416.62
7.4.230.0000.00716.58
7.4.220.0140.00416.68
7.4.210.0040.01116.72
7.4.200.0030.00316.75
7.4.160.0030.01316.79
7.4.150.0090.00917.40
7.4.140.0080.01117.86
7.4.130.0100.01116.63
7.4.120.0070.01016.62
7.4.110.0060.01216.71
7.4.100.0150.00616.72
7.4.90.0060.01316.57
7.4.80.0080.00819.39
7.4.70.0140.00716.64
7.4.60.0080.00816.73
7.4.50.0100.00716.75
7.4.40.0030.01416.49
7.4.30.0060.01216.63
7.4.00.0060.00915.14
7.3.330.0000.00613.16
7.3.320.0050.00013.22
7.3.310.0000.00816.35
7.3.300.0000.00716.25
7.3.290.0030.00316.43
7.3.280.0080.01116.41
7.3.270.0060.01017.40
7.3.260.0070.01716.51
7.3.250.0090.00916.70
7.3.240.0120.00916.54
7.3.230.0100.00716.41
7.3.210.0070.01116.62
7.3.200.0150.00619.39
7.3.190.0090.00616.69
7.3.180.0170.00016.38
7.3.170.0170.00316.51
7.3.160.0120.00316.71
7.2.330.0100.00716.88
7.2.320.0090.01716.84
7.2.310.0060.01716.91
7.2.300.0090.00916.83
7.2.290.0060.01716.85
7.2.60.0100.00716.80
7.2.00.0040.01119.56
7.1.200.0140.00316.06
7.1.100.0040.00418.26
7.1.70.0070.00717.25
7.1.60.0060.01819.40
7.1.50.0060.01617.21
7.1.00.0000.07722.30
7.0.200.1350.00715.17
7.0.60.0330.07019.95
7.0.50.0030.04017.89
7.0.40.0130.06320.06
7.0.30.0370.06720.00
7.0.20.0330.07720.20
7.0.10.0170.07720.27
7.0.00.0070.04020.16
5.6.280.0000.03320.77
5.6.210.0030.04020.46
5.6.200.0030.05718.21
5.6.190.0100.06320.35
5.6.180.0270.07320.48
5.6.170.0330.08020.50
5.6.160.0100.07320.38
5.6.150.0030.08318.09
5.6.140.0000.04318.18
5.6.130.0100.06318.11
5.6.120.0130.05020.89
5.6.110.0100.08021.00
5.6.100.0100.07020.98
5.6.90.0100.08021.12
5.6.80.0100.07720.53
5.5.350.0230.06320.34
5.5.340.0070.08017.89
5.5.330.0100.08320.12
5.5.320.0170.08720.21
5.5.310.0230.07020.31
5.5.300.0000.04717.98
5.5.290.0130.07317.98
5.5.280.0030.04020.85
5.5.270.0070.06320.79
5.5.260.0100.06020.76
5.5.250.0100.07320.55
5.5.240.4070.04320.15

preferences:
47.13 ms | 400 KiB | 5 Q