3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fromDate = '26-1-2020'; $fromHours = '09'; $fromMins = '00'; $subtractHours = '1'; // don't bother with 3600 precalculation $subtractMins = '0'; $format = 'Y-m-d H:i:s'; $date = DateTime::createFromFormat('d-m-Y H:i:s', "{$fromDate} {$fromHours}:{$fromMins}:00"); $date->sub(new DateInterval("PT{$subtractHours}H{$subtractMins}M")); echo $date->format('Y-m-d H:i');

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.130.0040.00416.54
8.3.120.0130.00618.85
8.3.110.0040.00420.94
8.3.100.0090.00024.06
8.3.90.0100.00726.77
8.3.80.0090.00019.36
8.3.70.0040.01118.43
8.3.60.0110.00418.30
8.3.50.0270.00723.74
8.3.40.0090.01218.70
8.3.30.0070.00718.67
8.3.20.0000.00821.77
8.3.10.0040.00422.00
8.3.00.0000.00821.87
8.2.250.0060.00318.71
8.2.240.0040.01118.72
8.2.230.0090.00022.58
8.2.220.0060.00337.54
8.2.210.0090.00026.77
8.2.200.0030.00618.88
8.2.190.0040.01116.58
8.2.180.0110.00418.66
8.2.170.0170.00318.96
8.2.160.0060.01222.96
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0100.00021.00
8.2.100.0080.00317.84
8.2.90.0080.00017.88
8.2.80.0090.00017.97
8.2.70.0080.00017.75
8.2.60.0080.00017.75
8.2.50.0040.00417.80
8.2.40.0040.00419.78
8.2.30.0050.00219.36
8.2.20.0030.00518.20
8.2.10.0000.00819.26
8.2.00.0000.00719.45
8.1.300.0110.00418.46
8.1.290.0030.00630.84
8.1.280.0070.00725.92
8.1.270.0080.00021.97
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0120.00017.60
8.1.230.0110.00017.66
8.1.220.0030.00517.93
8.1.210.0000.00818.77
8.1.200.0030.00617.13
8.1.190.0050.00317.23
8.1.180.0000.00918.10
8.1.170.0000.00817.65
8.1.160.0030.00618.86
8.1.150.0060.00318.89
8.1.140.0040.00420.77
8.1.130.0030.00519.33
8.1.120.0000.00717.43
8.1.110.0000.00817.43
8.1.100.0000.00817.41
8.1.90.0040.00417.52
8.1.80.0040.00417.44
8.1.70.0000.00717.57
8.1.60.0080.00017.59
8.1.50.0050.00317.54
8.1.40.0060.00317.54
8.1.30.0060.00317.58
8.1.20.0050.00317.51
8.1.10.0030.00517.66
8.1.00.0040.00417.64
8.0.300.0040.00418.87
8.0.290.0050.00316.88
8.0.280.0070.00018.42
8.0.270.0000.00918.16
8.0.260.0000.00717.06
8.0.250.0030.00317.18
8.0.240.0000.00817.20
8.0.230.0030.00317.16
8.0.220.0070.00017.06
8.0.210.0000.00817.13
8.0.200.0070.00017.17
8.0.190.0000.00717.16
8.0.180.0000.00817.16
8.0.170.0030.00617.04
8.0.160.0000.00817.11
8.0.150.0000.00717.06
8.0.140.0040.00417.06
8.0.130.0030.00313.44
8.0.120.0030.00617.09
8.0.110.0070.00017.00
8.0.100.0000.00717.13
8.0.90.0040.00417.07
8.0.80.0040.01017.03
8.0.70.0040.00417.03
8.0.60.0040.00416.91
8.0.50.0070.00017.15
8.0.30.0110.00517.05
8.0.20.0160.00317.08
8.0.10.0040.00417.14
8.0.00.0110.00716.82
7.4.330.0000.00516.67
7.4.320.0060.00016.41
7.4.300.0030.00616.58
7.4.290.0000.00716.50
7.4.280.0000.00816.52
7.4.270.0030.00316.66
7.4.260.0060.00013.20
7.4.250.0000.00816.47
7.4.240.0030.00316.56
7.4.230.0040.00416.43
7.4.220.0020.00516.46
7.4.210.0060.01016.60
7.4.200.0030.00316.39
7.4.130.0090.00916.70
7.4.120.0060.01216.47
7.4.110.0100.00716.54
7.4.100.0160.00616.34
7.4.90.0080.00816.57
7.4.80.0100.00719.39
7.4.70.0090.00916.64
7.4.60.0030.01316.46
7.4.50.0050.00816.37
7.4.40.0030.01216.54
7.4.20.0060.00916.42
7.4.10.0130.00316.58
7.4.00.0080.00816.52
7.3.330.0000.00916.29
7.3.320.0000.00513.20
7.3.310.0000.00816.45
7.3.300.0030.00316.32
7.3.290.0100.00516.34
7.3.260.0160.00416.59
7.3.240.0120.00716.64
7.3.230.0140.00916.47
7.3.210.0030.01316.54
7.3.200.0070.01416.24
7.3.190.0100.00716.45
7.3.180.0060.01216.38
7.3.170.0150.00616.54
7.3.160.0060.01316.49
7.3.130.0100.00616.61
7.3.120.0120.00316.40
7.3.110.0090.00616.46
7.3.100.0030.01216.47
7.3.90.0110.00416.43
7.3.80.0060.00916.57
7.3.70.0080.00716.37
7.3.60.0060.00916.36
7.3.50.0040.01116.30
7.3.40.0090.00616.22
7.3.30.0090.00616.43
7.3.20.0000.01616.49
7.3.10.0030.01316.67
7.3.00.0070.01016.32
7.2.330.0100.01316.54
7.2.320.0160.00716.94
7.2.310.0070.01016.77
7.2.300.0110.01116.41
7.2.290.0080.01816.65
7.2.260.0000.01616.43
7.2.250.0060.00916.78
7.2.240.0060.00916.75
7.2.230.0000.01516.75
7.2.220.0090.00916.41
7.2.210.0090.00616.46
7.2.200.0090.00616.75
7.2.190.0090.00916.48
7.2.180.0060.00916.69
7.2.170.0120.00416.48
7.2.160.0090.00616.74
7.2.150.0520.01316.77
7.2.140.0070.01016.63
7.2.130.0040.01216.56
7.2.120.0120.00616.63
7.2.110.0160.00016.72
7.2.100.0090.01516.52
7.2.90.0110.01116.77
7.2.80.0140.00316.48
7.2.70.0040.01116.68
7.2.60.0060.01016.70
7.2.50.0090.00616.35
7.2.40.0120.00316.59
7.2.30.0100.00716.73
7.2.20.0080.01116.59
7.2.10.0060.01216.65
7.2.00.0070.01116.50

preferences:
26.13 ms | 403 KiB | 5 Q