3v4l.org

run code in 300+ PHP versions simultaneously
<?php $thirtyOnedayMonths = array( 1, 3, 5, 7, 8, 10, 12 ); $oneMonth = new \DateInterval('P1M'); $format = 'Y-m-d'; foreach($thirtyOnedayMonths as $month){ $date = new \DateTime("2013-{$month}-31 00:00:01"); var_dump($date->format($format)); $date->sub($oneMonth); var_dump($date->format($format)); }

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.0180.00318.56
8.3.50.0230.00922.10
8.3.40.0120.00318.92
8.3.30.0080.00819.04
8.3.20.0030.00520.35
8.3.10.0080.00022.16
8.3.00.0000.00822.52
8.2.180.0040.01125.92
8.2.170.0140.00719.14
8.2.160.0140.00020.89
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0080.00019.48
8.2.110.0000.00922.29
8.2.100.0090.00319.36
8.2.90.0060.00317.88
8.2.80.0040.00418.95
8.2.70.0040.00418.03
8.2.60.0000.00817.75
8.2.50.0070.00317.63
8.2.40.0060.00319.30
8.2.30.0040.00418.05
8.2.20.0040.00417.87
8.2.10.0000.00718.07
8.2.00.0000.00817.96
8.1.280.0030.01325.92
8.1.270.0000.00724.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0070.00320.53
8.1.230.0060.00617.89
8.1.220.0040.00417.91
8.1.210.0000.00818.77
8.1.200.0050.00517.35
8.1.190.0050.00317.35
8.1.180.0000.00818.10
8.1.170.0080.00019.02
8.1.160.0040.00422.03
8.1.150.0080.00018.90
8.1.140.0040.00417.59
8.1.130.0070.00017.97
8.1.120.0040.00417.70
8.1.110.0030.00517.69
8.1.100.0000.00717.64
8.1.90.0050.00317.45
8.1.80.0000.00717.57
8.1.70.0000.00817.66
8.1.60.0040.00417.80
8.1.50.0040.00417.58
8.1.40.0060.00317.69
8.1.30.0030.00517.83
8.1.20.0000.00917.79
8.1.10.0000.00817.71
8.1.00.0080.00017.75
8.0.300.0050.00318.77
8.0.290.0050.00316.88
8.0.280.0070.00018.52
8.0.270.0030.00517.02
8.0.260.0070.00316.86
8.0.250.0030.00317.20
8.0.240.0000.00717.07
8.0.230.0080.00017.17
8.0.220.0040.00417.08
8.0.210.0000.00717.09
8.0.200.0080.00017.06
8.0.190.0000.00717.07
8.0.180.0040.00417.10
8.0.170.0030.00417.17
8.0.160.0040.00417.16
8.0.150.0000.00817.04
8.0.140.0000.00817.11
8.0.130.0000.00513.50
8.0.120.0040.00417.07
8.0.110.0000.00716.92
8.0.100.0040.00417.12
8.0.90.0000.00817.04
8.0.80.0100.01017.11
8.0.70.0070.00016.95
8.0.60.0000.00716.92
8.0.50.0040.00417.16
8.0.30.0130.00717.28
8.0.20.0050.01417.40
8.0.10.0060.00317.23
8.0.00.0090.00916.94
7.4.330.0050.00015.22
7.4.320.0030.00316.76
7.4.300.0000.00616.79
7.4.290.0040.00416.73
7.4.280.0030.00316.75
7.4.270.0000.00716.64
7.4.260.0040.00416.63
7.4.250.0000.00716.71
7.4.240.0070.00116.72
7.4.230.0000.00716.82
7.4.220.0070.01116.67
7.4.210.0090.00616.73
7.4.200.0030.00316.75
7.4.190.0040.00416.71
7.4.160.0090.00916.71
7.4.150.0070.01017.40
7.4.140.0130.00817.86
7.4.130.0130.00816.69
7.4.120.0100.00816.64
7.4.110.0160.00316.57
7.4.100.0070.01016.58
7.4.90.0120.00616.69
7.4.80.0140.00319.39
7.4.70.0060.01216.51
7.4.60.0060.01216.55
7.4.50.0040.00416.72
7.4.40.0030.01022.77
7.4.30.0030.01516.59
7.4.00.0070.00715.33
7.3.330.0030.00313.35
7.3.320.0030.00313.44
7.3.310.0030.00316.53
7.3.300.0030.00316.49
7.3.290.0030.01016.50
7.3.280.0110.00516.44
7.3.270.0130.00717.40
7.3.260.0090.00916.65
7.3.250.0110.00916.51
7.3.240.0100.00616.52
7.3.230.0070.01016.81
7.3.210.0060.01216.70
7.3.200.0120.01019.39
7.3.190.0100.01316.51
7.3.180.0130.00316.46
7.3.170.0060.01016.64
7.3.160.0170.00716.66
7.3.120.0040.00415.08
7.2.330.0100.01016.84
7.2.320.0100.00916.65
7.2.310.0070.01116.68
7.2.300.0070.01016.88
7.2.290.0000.01716.89
7.2.60.0030.01317.09
7.2.00.0070.00719.44
7.1.200.0030.01115.66
7.1.100.0000.01317.96
7.1.70.0050.00217.36
7.1.60.0100.00017.46
7.1.50.0030.02017.29
7.1.00.0000.07722.27
7.0.200.0100.00317.00
7.0.140.0070.07022.00
7.0.80.0070.04719.91
7.0.70.0430.03319.93
7.0.60.0070.04019.96
7.0.50.0170.03020.34
7.0.40.0100.03720.13
7.0.30.0070.05320.07
7.0.20.0000.04720.05
7.0.10.0030.08020.18
7.0.00.0070.04019.99
5.6.280.0030.07320.99
5.6.230.0030.05320.50
5.6.220.0070.05720.58
5.6.210.0000.04320.64
5.6.200.0030.03321.03
5.6.190.0100.03321.08
5.6.180.0000.05721.12
5.6.170.0070.04021.07
5.6.160.0000.04321.10
5.6.150.0000.04721.04
5.6.140.0030.04020.95
5.6.130.0030.04020.95
5.6.120.0100.03721.05
5.6.110.0000.04721.01
5.6.100.0100.03721.03
5.6.90.0070.03021.11
5.6.80.0070.03720.38
5.6.70.0070.04020.54
5.6.60.0000.04320.48
5.6.50.0030.04320.40
5.6.40.0030.04020.40
5.6.30.0000.04020.34
5.6.20.0130.07020.39
5.6.10.0200.04020.46
5.6.00.0170.06720.38
5.5.370.0000.08020.32
5.5.360.0070.04020.43
5.5.350.0030.04320.37
5.5.340.0000.05020.75
5.5.330.0070.03320.86
5.5.320.0000.04320.83
5.5.310.0030.04020.75
5.5.300.0070.03320.64
5.5.290.0030.04720.88
5.5.280.0030.03720.77
5.5.270.0030.04320.85
5.5.260.0000.04020.81
5.5.250.0030.03320.68
5.5.240.0000.03320.29
5.5.230.0000.05020.21
5.5.220.0000.03320.16
5.5.210.0070.03320.14
5.5.200.0030.04020.14
5.5.190.0130.07320.14
5.5.180.0130.07020.23
5.5.160.0000.04020.17
5.5.150.0030.03319.98
5.5.140.0070.06020.23
5.5.130.0130.07320.10
5.5.120.0100.06720.18
5.5.110.0030.06020.21
5.5.100.0030.07019.92
5.5.90.0030.04020.06
5.5.80.0070.03720.09
5.5.70.0070.07720.05
5.5.60.0070.07720.05
5.5.50.0070.05320.11
5.5.40.0100.03719.99
5.5.30.0030.05719.89
5.5.20.0100.08020.02
5.5.10.0070.04719.97
5.5.00.0100.06320.09
5.4.450.0030.03719.42
5.4.440.0130.02719.27
5.4.430.0000.04319.55
5.4.420.0030.03319.10
5.4.410.0030.04719.31
5.4.400.0030.03718.90
5.4.390.0030.06019.20
5.4.380.0000.04018.94
5.4.370.0070.04718.90
5.4.360.0030.03718.95
5.4.350.0030.03718.79
5.4.340.0030.08018.95
5.4.320.0070.06318.98
5.4.310.0070.03019.03
5.4.300.0000.07019.00
5.4.290.0030.03319.12
5.4.280.0100.06719.06
5.4.270.0130.06719.03
5.4.260.0030.04018.90
5.4.250.0070.05718.97
5.4.240.0000.04019.22
5.4.230.0030.04319.04
5.4.220.0030.06319.11
5.4.210.0200.05719.04
5.4.200.0070.03319.11
5.4.190.0100.03019.07
5.4.180.0000.08319.02
5.4.170.0070.07719.09
5.4.160.0030.03318.88
5.4.150.0100.06319.02
5.4.140.0070.08016.38
5.4.130.0070.07016.42
5.4.120.0070.07016.41
5.4.110.0070.05316.27
5.4.100.0100.06316.36
5.4.90.0030.07316.48
5.4.80.0070.07016.46
5.4.70.0070.07716.48
5.4.60.0030.03016.34
5.4.50.0030.06716.18
5.4.40.0100.07016.41
5.4.30.0030.07716.27
5.4.20.0100.07016.27
5.4.10.0070.06716.18
5.4.00.0070.04015.81
5.3.290.0070.07714.66
5.3.280.0200.06314.45
5.3.270.0030.08014.56
5.3.260.0030.03314.55
5.3.250.0100.07314.55
5.3.240.0170.06714.60
5.3.230.0030.03314.42
5.3.220.0100.07014.54
5.3.210.0070.07314.53
5.3.200.0070.04314.55
5.3.190.0000.08014.53
5.3.180.0070.09314.55
5.3.170.0070.07714.43
5.3.160.0000.08014.55
5.3.150.0070.07014.52
5.3.140.0030.03014.55
5.3.130.0000.03714.49
5.3.120.0030.07714.53
5.3.110.0000.08014.41
5.3.100.0030.04013.89
5.3.90.0100.06314.02
5.3.80.0070.07713.99
5.3.70.0000.08014.01
5.3.60.0100.04313.99
5.3.50.0030.03713.94
5.3.40.0100.05313.81
5.3.30.0070.03313.66
5.3.20.0030.03713.67
5.3.10.0100.07013.59
5.3.00.0070.07713.55
5.2.170.0070.05712.34
5.2.160.0100.03012.34
5.2.150.0070.03312.34
5.2.140.0030.03012.34
5.2.130.0070.04012.34
5.2.120.0030.02312.34
5.2.110.0030.04712.34
5.2.100.0070.06012.34
5.2.90.0100.05712.34
5.2.80.0070.04312.34
5.2.70.0030.06312.34
5.2.60.0030.04712.34
5.2.50.0030.06712.34
5.2.40.0030.02312.34
5.2.30.0030.04012.34
5.2.20.0030.02312.34
5.2.10.0000.06312.34
5.2.00.0030.02312.34
5.1.60.0030.05312.34
5.1.50.0000.03312.34
5.1.40.0030.03312.34
5.1.30.0030.03012.34
5.1.20.0030.04312.34
5.1.10.0030.04012.34
5.1.00.0000.02312.34
5.0.50.0030.04312.34
5.0.40.0030.03312.34
5.0.30.0000.03312.34
5.0.20.0000.02012.34
5.0.10.0030.01712.34
5.0.00.0000.03312.34
4.4.90.0030.01312.34
4.4.80.0000.03312.34
4.4.70.0070.03012.34
4.4.60.0030.03312.34
4.4.50.0000.03712.34
4.4.40.0030.04312.34
4.4.30.0000.02312.34
4.4.20.0030.03712.34
4.4.10.0000.03712.34
4.4.00.0030.05312.34
4.3.110.0030.02012.34
4.3.100.0000.01712.34
4.3.90.0030.03312.34
4.3.80.0030.05312.34
4.3.70.0000.02312.34
4.3.60.0030.01012.34
4.3.50.0030.01712.34
4.3.40.0000.05012.34
4.3.30.0030.03012.34
4.3.20.0000.02012.34
4.3.10.0000.03712.34
4.3.00.0000.02712.34

preferences:
48.58 ms | 401 KiB | 5 Q