3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = "2018-05-07"; $end = "2019-07-04"; $times = 0; // Check if first and last month in the range has a 14th. If(date("d", strtotime($start)) <= 14) $times++; If(date("d", strtotime($end)) >= 14) $times++; // Create an array with months between start and end $months = range(strtotime($start . "+1 month"), strtotime($end . "-1 month"), 86400*30); Var_dump($months); // Add the count of the months $times += count($months); Echo $times;

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.5.10.0110.00816.87
8.5.00.0170.00820.41
8.4.150.0030.00014.05
8.4.140.0110.00917.77
8.4.130.0130.00718.68
8.4.120.0110.00824.21
8.4.110.0130.00820.53
8.4.100.0150.00618.98
8.4.90.0120.00918.71
8.4.80.0040.00517.89
8.4.70.0130.00618.07
8.4.60.0130.00818.73
8.4.50.0110.00917.86
8.4.40.0060.00317.82
8.4.30.0070.01317.85
8.4.20.0070.01519.41
8.4.10.0100.00717.90
8.3.280.0120.01118.78
8.3.270.0120.00816.82
8.3.260.0100.00916.78
8.3.250.0110.00818.72
8.3.240.0130.00717.23
8.3.230.0110.01016.76
8.3.220.0120.00617.45
8.3.210.0080.01116.76
8.3.200.0070.00116.71
8.3.190.0090.01117.36
8.3.180.0090.00918.99
8.3.170.0120.00617.35
8.3.160.0120.00616.63
8.3.150.0150.00318.96
8.3.140.0030.00716.75
8.3.130.0080.00018.59
8.3.120.0060.01320.95
8.3.110.0060.00320.94
8.3.100.0000.00824.06
8.3.90.0060.00326.77
8.3.80.0030.00618.68
8.3.70.0060.01018.55
8.3.60.0110.00718.68
8.3.50.0120.00418.43
8.3.40.0040.01118.92
8.3.30.0120.00318.97
8.3.20.0090.00019.27
8.3.10.0050.00321.81
8.3.00.0080.00023.54
8.2.290.0120.00720.33
8.2.280.0050.00418.40
8.2.270.0150.00418.45
8.2.260.0040.00419.08
8.2.250.0040.00416.76
8.2.240.0100.01018.76
8.2.230.0050.00522.58
8.2.220.0080.00037.54
8.2.210.0060.00326.77
8.2.200.0000.01118.41
8.2.190.0070.01116.75
8.2.180.0090.00918.29
8.2.170.0120.00922.96
8.2.160.0070.00719.35
8.2.150.0100.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00419.33
8.2.120.0040.00426.35
8.2.110.0110.00422.29
8.2.100.0090.00319.76
8.2.90.0040.00419.34
8.2.80.0050.00317.97
8.2.70.0040.00417.88
8.2.60.0080.00017.88
8.2.50.0040.00419.78
8.2.40.0060.00318.20
8.2.30.0040.00418.20
8.2.20.0040.00418.22
8.2.10.0040.00418.17
8.2.00.0000.00719.39
8.1.330.0140.00722.19
8.1.320.0100.01016.17
8.1.310.0180.00016.88
8.1.300.0060.00319.96
8.1.290.0060.00330.84
8.1.280.0070.01025.92
8.1.270.0130.00723.84
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00319.39
8.1.230.0070.00419.13
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0090.00017.47
8.1.190.0060.00317.60
8.1.180.0090.00018.10
8.1.170.0030.00519.03
8.1.160.0040.00418.95
8.1.150.0040.00419.13
8.1.140.0040.00417.72
8.1.130.0030.00319.11
8.1.120.0060.00317.76
8.1.110.0030.00617.76
8.1.100.0070.00017.59
8.1.90.0000.00717.64
8.1.80.0090.00017.64
8.1.70.0050.00317.64
8.1.60.0060.00317.68
8.1.50.0050.00317.77
8.1.40.0040.00417.73
8.1.30.0040.00417.82
8.1.20.0000.00717.88
8.1.10.0030.00517.77
8.1.00.0030.00517.54
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0040.00418.51
8.0.270.0040.00417.01
8.0.260.0060.00017.41
8.0.250.0030.00317.27
8.0.240.0060.00317.23
8.0.230.0030.00317.20
8.0.220.0080.00017.17
8.0.210.0030.00317.19
8.0.200.0000.00717.27
8.0.190.0040.00417.13
8.0.180.0000.00817.20
8.0.170.0030.00617.07
8.0.160.0000.00817.19
8.0.150.0040.00417.13
8.0.140.0000.00717.13
8.0.130.0030.00313.54
8.0.120.0040.00417.13
8.0.110.0040.00417.18
8.0.100.0040.00417.21
8.0.90.0000.00717.07
8.0.80.0080.01117.20
8.0.70.0040.00417.20
8.0.60.0050.00317.07
8.0.50.0030.00616.96
8.0.30.0080.01117.30
8.0.20.0190.00017.49
8.0.10.0060.00317.24
8.0.00.0080.01016.87
7.4.330.0000.00515.55
7.4.320.0030.00316.76
7.4.300.0030.00516.73
7.4.290.0070.00016.71
7.4.280.0030.00516.70
7.4.270.0000.01016.82
7.4.260.0040.00416.79
7.4.250.0000.00716.70
7.4.240.0070.00016.71
7.4.230.0030.00316.89
7.4.220.0000.00816.62
7.4.210.0090.00616.67
7.4.200.0000.00716.79
7.4.160.0050.01216.83
7.4.140.0100.00817.86
7.4.130.0090.01516.80
7.4.120.0110.00916.74
7.4.110.0090.00916.71
7.4.100.0120.00616.77
7.4.90.0030.01516.84
7.4.80.0060.01619.39
7.4.70.0120.00616.71
7.4.60.0060.01016.72
7.4.50.0090.00516.83
7.4.40.0120.00616.74
7.4.00.0050.01115.16
7.3.330.0000.00613.41
7.3.320.0000.00513.38
7.3.310.0000.00716.63
7.3.300.0040.00416.50
7.3.290.0030.00316.50
7.3.280.0040.01116.41
7.3.260.0100.01016.79
7.3.240.0040.01516.67
7.3.230.0120.01216.73
7.3.210.0070.01016.70
7.3.200.0100.00716.52
7.3.190.0030.01216.91
7.3.180.0140.00316.74
7.3.170.0140.01016.55
7.3.160.0100.01316.85
7.3.120.0100.00315.28
7.3.110.0000.01714.98
7.3.100.0040.00815.25
7.3.90.0060.00615.16
7.3.80.0060.00315.15
7.3.70.0030.01014.93
7.3.60.0000.01215.26
7.3.50.0080.00815.02
7.3.40.0070.00715.05
7.3.30.0000.00915.14
7.3.20.0070.00716.92
7.3.10.0100.00816.75
7.3.00.0100.00716.84
7.2.330.0090.01016.77
7.2.320.0120.00616.68
7.2.310.0100.00717.00
7.2.300.0060.01016.80
7.2.290.0070.01017.04
7.2.250.0100.00715.16
7.2.240.0110.00715.29
7.2.230.0030.01314.89
7.2.220.0040.00815.32
7.2.210.0030.01315.16
7.2.200.0070.00715.09
7.2.190.0160.00015.30
7.2.180.0040.01215.10
7.2.170.0060.01015.41
7.2.130.0130.00316.88
7.2.120.0130.00417.07
7.2.110.0110.00616.97
7.2.100.0100.00516.86
7.2.90.0110.00816.94
7.2.80.0170.00616.71
7.2.70.0310.00616.46
7.2.60.0410.00816.45
7.2.50.0650.00816.37
7.2.40.0350.00816.40
7.2.30.0370.00716.41
7.2.20.0260.01116.46
7.2.10.0430.00516.39
7.2.00.0370.00816.44
7.1.330.0070.01016.05
7.1.320.0080.00416.18
7.1.310.0040.00815.96
7.1.300.0060.01015.91
7.1.290.0050.00515.86
7.1.280.0100.00315.98
7.1.270.0000.01216.13
7.1.260.0090.00615.95
7.1.250.0080.00515.79
7.1.200.0000.01315.89
7.1.170.0670.01013.95
7.1.160.0840.00713.72
7.1.150.0740.01114.10
7.1.140.0720.01314.09
7.1.130.0730.01314.00
7.1.120.0650.00314.16
7.1.110.0900.00014.06
7.1.100.0610.01014.14
7.1.90.0760.01014.14
7.1.80.0630.01014.17
7.1.70.1020.00614.00
7.1.60.1190.01731.97
7.1.50.1200.01332.04
7.1.40.0990.01732.26
7.1.30.1230.02332.13
7.1.20.1160.00632.21
7.1.10.1000.01314.20
7.1.00.0720.01014.10

preferences:
39.44 ms | 403 KiB | 5 Q