3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 1; //date("n"); $day = 13; //date("j"); $year = 2014; //date("Y"); if ($day > 15) { $day = 1; } else { if ($month == 0) { $month = 12; $year--; } else { $month--; $day = 16; } $daysinmonth = date("t", strtotime("$year - $month - $day")); } //$rangeEnd = date("Y-m-d 23:59:59", strtotime("last month")); //$rangeStart = date("Y-m-d 00:00:00", strtotime($rangeEnd." -6 days")); echo "$year $month $day $daysinmonth"; ?>

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.0060.00916.63
8.3.50.0120.00522.07
8.3.40.0100.01018.93
8.3.30.0140.00019.18
8.3.20.0040.00420.29
8.3.10.0000.00823.70
8.3.00.0060.00318.96
8.2.180.0110.00416.48
8.2.170.0090.00622.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00420.74
8.2.110.0090.00022.32
8.2.100.0080.00317.84
8.2.90.0000.00719.23
8.2.80.0040.00417.97
8.2.70.0090.00017.60
8.2.60.0040.00717.90
8.2.50.0090.00018.07
8.2.40.0000.00821.18
8.2.30.0040.00418.21
8.2.20.0040.00417.76
8.2.10.0000.00718.25
8.2.00.0080.00018.00
8.1.280.0060.01325.92
8.1.270.0040.00423.79
8.1.260.0030.00526.35
8.1.250.0030.00628.09
8.1.240.0030.00622.20
8.1.230.0100.00019.09
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0060.00317.48
8.1.190.0030.00617.36
8.1.180.0060.00318.10
8.1.170.0060.00318.77
8.1.160.0000.00721.94
8.1.150.0000.00718.71
8.1.140.0040.00417.64
8.1.130.0030.00317.77
8.1.120.0040.00417.55
8.1.110.0000.00717.61
8.1.100.0070.00017.62
8.1.90.0070.00017.68
8.1.80.0020.00517.58
8.1.70.0030.00317.58
8.1.60.0030.00517.60
8.1.50.0000.00817.71
8.1.40.0040.00417.63
8.1.30.0000.00917.79
8.1.20.0030.00517.79
8.1.10.0070.00017.60
8.1.00.0050.00317.68
8.0.300.0070.00018.77
8.0.290.0040.00417.30
8.0.280.0000.00718.39
8.0.270.0070.00017.25
8.0.260.0030.00317.33
8.0.250.0000.00717.18
8.0.240.0040.00417.04
8.0.230.0050.00217.06
8.0.220.0000.00716.96
8.0.210.0000.00917.05
8.0.200.0070.00017.04
8.0.190.0030.00617.05
8.0.180.0000.00717.00
8.0.170.0060.00317.17
8.0.160.0050.00217.10
8.0.150.0000.00717.01
8.0.140.0060.00316.98
8.0.130.0040.00413.39
8.0.120.0040.00416.96
8.0.110.0030.00517.01
8.0.100.0000.00716.99
8.0.90.0000.00717.16
8.0.80.0000.01517.09
8.0.70.0040.00416.96
8.0.60.0070.00017.06
8.0.50.0040.00416.92
8.0.30.0130.00517.18
8.0.20.0120.00617.40
8.0.10.0040.00417.23
8.0.00.0070.01116.87
7.4.330.0030.00315.00
7.4.320.0030.00316.66
7.4.300.0030.00316.63
7.4.290.0030.00316.70
7.4.280.0030.00316.74
7.4.270.0000.00716.73
7.4.260.0030.00316.61
7.4.250.0000.00716.71
7.4.240.0020.00616.67
7.4.230.0000.00716.72
7.4.220.0090.00916.85
7.4.210.0080.00816.79
7.4.200.0040.00416.71
7.4.190.0040.00416.54
7.4.160.0120.00416.67
7.4.150.0120.00617.40
7.4.140.0140.00317.86
7.4.130.0100.00716.75
7.4.120.0030.01316.61
7.4.110.0110.00516.55
7.4.100.0070.01016.64
7.4.90.0090.00916.57
7.4.80.0080.01119.39
7.4.70.0140.00316.71
7.4.60.0060.01216.68
7.4.50.0040.00416.29
7.4.40.0130.00316.61
7.4.30.0140.00316.80
7.4.00.0060.01015.14
7.3.330.0040.00413.36
7.3.320.0030.00313.29
7.3.310.0030.00416.50
7.3.300.0040.00416.29
7.3.290.0120.00316.41
7.3.280.0070.01016.48
7.3.270.0090.00917.40
7.3.260.0140.00416.81
7.3.250.0050.01216.70
7.3.240.0100.00716.65
7.3.230.0060.01116.39
7.3.210.0060.01516.62
7.3.200.0090.00919.39
7.3.190.0160.00816.55
7.3.180.0060.00916.74
7.3.170.0110.00516.65
7.3.160.0060.01116.72
7.3.120.0070.01014.97
7.3.00.0120.00616.90
7.2.330.0140.00716.91
7.2.320.0070.01016.79
7.2.310.0040.01216.91
7.2.300.0130.00316.93
7.2.290.0120.00616.60
7.2.130.0070.01017.10
7.2.120.0100.00717.01
7.2.110.0000.01416.95
7.2.100.0100.00317.12
7.2.90.0040.01417.11
7.2.80.0000.01317.09
7.2.70.0070.00717.27
7.2.60.0060.00616.88
7.2.50.0060.00916.95
7.2.40.0030.00717.01
7.2.30.0000.01517.13
7.2.20.0040.01417.20
7.2.10.0030.01017.09
7.2.00.0040.00718.13
7.1.250.0110.00515.81
7.1.240.0060.00915.83
7.1.230.0070.00415.68
7.1.220.0060.00615.87
7.1.210.0040.00816.10
7.1.200.0060.00615.76
7.1.190.0040.01215.80
7.1.180.0040.00415.84
7.1.170.0080.00315.92
7.1.160.0060.00615.94
7.1.150.0030.01015.76
7.1.140.0000.01316.00
7.1.130.0040.00915.88
7.1.120.0060.00615.66
7.1.110.0070.00715.74
7.1.100.0050.01016.90
7.1.90.0060.00315.72
7.1.80.0100.00315.98
7.1.70.0040.00616.63
7.1.60.0100.00917.75
7.1.50.0080.00716.60
7.1.40.0030.00616.06
7.1.30.0120.00415.98
7.1.20.0040.00415.95
7.1.10.0060.00615.88
7.1.00.0020.04519.18
7.0.330.0030.00615.23
7.0.320.0000.01415.63
7.0.310.0090.00615.44
7.0.300.0060.00315.72
7.0.290.0040.00815.76
7.0.280.0040.00815.54
7.0.270.0000.00915.66
7.0.260.0080.00015.33
7.0.250.0030.00615.24
7.0.240.0060.00615.75
7.0.230.0130.00315.64
7.0.220.0040.00715.60
7.0.210.0060.00315.38
7.0.200.0050.00416.08
7.0.190.0030.01015.66
7.0.180.0060.00615.46
7.0.170.0030.01015.77
7.0.160.0000.01515.57
7.0.150.0120.00015.25
7.0.140.0080.03618.72
7.0.130.0060.00315.62
7.0.120.0000.01315.32
7.0.110.0020.02717.69
7.0.100.0060.02317.72
7.0.90.0070.02017.80
7.0.80.0030.02517.72
7.0.70.0050.03317.71
7.0.60.0050.02917.87
7.0.50.0030.04517.87
7.0.40.0130.03816.68
7.0.30.0030.04416.55
7.0.20.0060.04516.70
7.0.10.0030.04516.68
7.0.00.0050.04016.70
5.6.380.0060.00614.66
5.6.370.0030.01014.55
5.6.360.0040.00814.23
5.6.350.0030.00614.21
5.6.340.0040.00814.60
5.6.330.0060.00614.38
5.6.320.0030.01014.64
5.6.310.0090.00614.61
5.6.300.0030.01014.11
5.6.290.0120.00314.46
5.6.280.0090.03217.70
5.6.270.0070.00714.36
5.6.260.0050.02317.71
5.6.250.0040.02517.66
5.6.240.0020.03217.65
5.6.230.0060.02417.56
5.6.220.0050.02217.46
5.6.210.0080.02817.48
5.6.200.0050.02217.51
5.6.190.0070.04217.63
5.6.180.0050.03317.50
5.6.170.0070.04217.41
5.6.160.0140.03617.50
5.6.150.0120.02317.50
5.6.140.0100.04017.38
5.6.130.0040.04617.69
5.6.120.0070.02717.48
5.6.110.0080.03517.44
5.6.100.0050.04117.77
5.6.90.0080.04517.60
5.6.80.0080.03817.10
5.6.70.0060.04217.12
5.6.60.0080.04217.08
5.6.50.0070.04117.10
5.6.40.0050.02516.97
5.6.30.0090.03217.25
5.6.20.0060.04017.02
5.6.10.0050.04517.35
5.6.00.0050.04217.13
5.5.380.0000.02314.25
5.5.370.0020.03114.28
5.5.360.0030.01814.33
5.5.350.0050.02114.25
5.5.340.0030.02414.51
5.5.330.0050.03814.43
5.5.320.0050.04214.49
5.5.310.0080.03814.76
5.5.300.0070.04114.63
5.5.290.0060.03714.68
5.5.280.0000.04714.67
5.5.270.0050.02514.42
5.5.260.0080.03814.80
5.5.250.0050.02214.48
5.5.240.0030.04314.28
5.5.230.0050.04214.11
5.5.220.0020.04114.20
5.5.210.0090.03814.29
5.5.200.0070.02314.26
5.5.190.0030.02314.13
5.5.180.0020.02714.18
5.5.170.0070.00411.00
5.5.160.0060.04114.15
5.5.150.0080.02814.40
5.5.140.0070.04414.37
5.5.130.0050.02214.23
5.5.120.0050.04314.12
5.5.110.0050.04414.20
5.5.100.0000.03214.08
5.5.90.0100.02214.21
5.5.80.0040.04314.22
5.5.70.0070.03814.19
5.5.60.0040.02114.10
5.5.50.0000.04514.17
5.5.40.0030.03914.09
5.5.30.0030.02514.19
5.5.20.0080.02714.05
5.5.10.0110.03714.07
5.5.00.0050.03214.21
5.4.450.0060.01915.22
5.4.440.0030.04515.20
5.4.430.0070.03515.36
5.4.420.0090.03615.45
5.4.410.0030.03515.07
5.4.400.0030.03815.09
5.4.390.0070.04015.15
5.4.380.0070.02515.21
5.4.370.0080.04015.06
5.4.360.0030.04015.11
5.4.350.0090.03115.06
5.4.340.0000.04815.18
5.4.330.0080.00311.16
5.4.320.0060.02615.05
5.4.310.0090.03715.00
5.4.300.0030.04115.09
5.4.290.0060.03015.06
5.4.280.0080.03715.08
5.4.270.0100.02015.00
5.4.260.0050.03615.00
5.4.250.0060.03815.02
5.4.240.0050.03714.98
5.4.230.0070.03214.99
5.4.220.0060.02515.09
5.4.210.0030.02315.13
5.4.200.0080.03615.04
5.4.190.0060.03915.04
5.4.180.0070.03715.08
5.4.170.0070.04015.06
5.4.160.0070.03715.11
5.4.150.0070.03815.21
5.4.140.0050.04413.68
5.4.130.0040.03213.77
5.4.120.0030.04413.74
5.4.110.0070.03513.80
5.4.100.0070.03813.72
5.4.90.0070.03813.80
5.4.80.0070.04513.88
5.4.70.0000.04413.80
5.4.60.0050.02613.76
5.4.50.0010.02813.73
5.4.40.0100.03413.63
5.4.30.0020.02713.73
5.4.20.0080.03313.69
5.4.10.0080.03813.74
5.4.00.0030.02013.45
5.3.290.0060.04312.76
5.3.280.0050.04312.74
5.3.270.0060.04112.76
5.3.260.0050.03812.78
5.3.250.0170.01512.80
5.3.240.0020.04012.73
5.3.230.0050.04212.75
5.3.220.0020.04512.75
5.3.210.0100.03612.80
5.3.200.0070.03912.75
5.3.190.0070.04012.73
5.3.180.0060.03612.73
5.3.170.0080.03812.76
5.3.160.0050.03812.81
5.3.150.0060.03512.76
5.3.140.0040.03412.81
5.3.130.0020.02912.81
5.3.120.0050.04012.71
5.3.110.0050.03012.75
5.3.100.0070.03812.43
5.3.90.0030.03212.46
5.3.80.0030.04012.45
5.3.70.0050.04012.44
5.3.60.0070.04212.41
5.3.50.0000.04312.52
5.3.40.0070.02012.48
5.3.30.0020.02512.46
5.3.20.0030.03112.35
5.3.10.0030.03912.28
5.3.00.0060.03612.33
5.2.170.0080.02811.42
5.2.160.0050.01411.42
5.2.150.0050.02311.42
5.2.140.0070.01411.42
5.2.130.0070.02811.42
5.2.120.0030.03211.42
5.2.110.0040.02911.42
5.2.100.0030.03211.42
5.2.90.0050.02811.42
5.2.80.0050.02711.42
5.2.70.0070.02911.42
5.2.60.0020.03511.42
5.2.50.0070.03111.42
5.2.40.0030.03011.42
5.2.30.0080.02811.42
5.2.20.0010.02511.42
5.2.10.0030.02011.42
5.2.00.0050.03011.42
5.1.60.0000.02511.42
5.1.50.0080.02011.42
5.1.40.0020.02611.42
5.1.30.0030.01811.42
5.1.20.0020.01711.42
5.1.10.0000.02011.42
5.1.00.0020.03211.42
5.0.50.0020.02611.42
5.0.40.0030.01811.42
5.0.30.0060.03311.42
5.0.20.0050.01411.42
5.0.10.0060.01811.42
5.0.00.0000.03711.42
4.4.90.0020.01211.42
4.4.80.0020.01811.42
4.4.70.0020.01511.42
4.4.60.0020.02011.42
4.4.50.0110.01011.42
4.4.40.0040.02411.42
4.4.30.0010.01511.42
4.4.20.0030.01811.42
4.4.10.0010.01911.42
4.4.00.0030.02711.42
4.3.110.0030.01611.42
4.3.100.0040.01711.42
4.3.90.0020.01511.42
4.3.80.0020.03011.42
4.3.70.0010.01811.42
4.3.60.0020.01911.42
4.3.50.0020.01911.42
4.3.40.0030.02711.42
4.3.30.0000.01411.42
4.3.20.0020.02211.42
4.3.10.0020.01711.42
4.3.00.0010.01611.42

preferences:
40.86 ms | 401 KiB | 5 Q