3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = 2; //date("n"); $day = 16; //date("j"); $year = 2014; //date("Y"); if ($day > 15) { $day = 1; } else { if ($month == 1) { $month = 12; $year--; $day = 16; } 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.0070.01416.50
8.3.50.0100.01021.90
8.3.40.0140.00418.98
8.3.30.0150.00019.09
8.3.20.0030.00620.21
8.3.10.0000.00723.70
8.3.00.0050.00319.13
8.2.180.0070.00716.88
8.2.170.0070.00722.96
8.2.160.0070.00720.34
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0080.00020.79
8.2.110.0040.00422.28
8.2.100.0080.00317.82
8.2.90.0040.00419.17
8.2.80.0050.00317.97
8.2.70.0000.00917.88
8.2.60.0000.01017.68
8.2.50.0050.00318.07
8.2.40.0080.00021.05
8.2.30.0050.00218.20
8.2.20.0040.00417.92
8.2.10.0070.00018.18
8.2.00.0040.00417.95
8.1.280.0140.00425.92
8.1.270.0090.00023.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00319.05
8.1.230.0080.00319.09
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0050.00317.48
8.1.180.0000.00918.10
8.1.170.0050.00318.79
8.1.160.0040.00421.94
8.1.150.0000.00718.73
8.1.140.0040.00417.59
8.1.130.0070.00017.86
8.1.120.0030.00317.64
8.1.110.0060.00317.48
8.1.100.0000.00817.52
8.1.90.0030.00517.61
8.1.80.0090.00017.47
8.1.70.0000.00717.51
8.1.60.0040.00417.66
8.1.50.0060.00317.55
8.1.40.0040.00417.55
8.1.30.0000.00817.74
8.1.20.0070.00017.68
8.1.10.0080.00017.66
8.1.00.0000.00817.60
8.0.300.0000.00718.77
8.0.290.0070.00017.18
8.0.280.0000.00718.47
8.0.270.0000.00717.20
8.0.260.0080.00017.25
8.0.250.0030.00317.07
8.0.240.0040.00417.11
8.0.230.0050.00317.18
8.0.220.0000.00717.04
8.0.210.0030.00717.09
8.0.200.0000.00617.02
8.0.190.0030.00417.15
8.0.180.0070.00017.00
8.0.170.0040.00417.13
8.0.160.0030.00317.11
8.0.150.0040.00416.94
8.0.140.0100.00017.03
8.0.130.0060.00313.47
8.0.120.0090.00016.96
8.0.110.0060.00317.07
8.0.100.0080.00016.98
8.0.90.0000.00816.98
8.0.80.0070.01117.04
8.0.70.0070.00017.09
8.0.60.0040.00416.97
8.0.50.0040.00416.98
8.0.30.0110.00717.13
8.0.20.0100.00917.40
8.0.10.0000.00717.02
8.0.00.0090.00917.01
7.4.330.0000.00715.00
7.4.320.0030.00316.62
7.4.300.0070.00016.67
7.4.290.0080.00016.58
7.4.280.0000.00716.59
7.4.270.0000.00716.61
7.4.260.0050.00216.57
7.4.250.0050.00316.53
7.4.240.0000.00716.62
7.4.230.0000.00716.70
7.4.220.0160.00316.60
7.4.210.0060.00716.61
7.4.200.0040.00416.57
7.4.190.0000.00816.80
7.4.160.0160.00616.82
7.4.150.0160.00317.40
7.4.140.0140.00317.86
7.4.130.0070.01016.63
7.4.120.0060.01216.56
7.4.110.0030.01716.71
7.4.100.0210.00016.51
7.4.90.0130.00916.68
7.4.80.0090.01219.39
7.4.70.0090.01216.65
7.4.60.0130.00716.50
7.4.50.0030.00316.65
7.4.40.0110.00616.63
7.4.30.0100.00716.54
7.4.00.0080.00815.24
7.3.330.0040.00413.16
7.3.320.0050.00013.24
7.3.310.0050.00316.16
7.3.300.0060.00016.44
7.3.290.0030.01316.35
7.3.280.0090.00916.41
7.3.270.0090.01217.40
7.3.260.0090.00916.58
7.3.250.0120.00916.39
7.3.240.0120.00916.45
7.3.230.0090.01216.43
7.3.210.0090.00916.36
7.3.200.0080.00819.39
7.3.190.0090.00916.70
7.3.180.0100.00616.32
7.3.170.0130.00316.40
7.3.160.0120.00416.68
7.3.120.0090.00315.15
7.3.10.0100.00716.77
7.3.00.0040.00816.68
7.2.330.0070.01716.70
7.2.320.0110.00816.59
7.2.310.0160.00716.48
7.2.300.0110.01116.63
7.2.290.0100.01016.87
7.2.130.0040.01216.90
7.2.120.0060.01016.75
7.2.110.0030.01016.83
7.2.100.0030.01116.89
7.2.90.0070.00716.70
7.2.80.0070.00516.88
7.2.70.0040.00916.98
7.2.60.0080.00516.89
7.2.50.0060.00816.89
7.2.40.0070.00716.76
7.2.30.0050.00816.86
7.2.20.0050.00916.94
7.2.10.0030.00916.84
7.2.00.0050.00817.76
7.1.250.0030.00915.66
7.1.240.0080.00315.72
7.1.230.0040.00815.98
7.1.220.0070.01015.61
7.1.210.0030.00615.90
7.1.200.0070.00715.89
7.1.190.0100.00315.97
7.1.180.0090.00315.70
7.1.170.0000.01415.58
7.1.160.0140.00015.90
7.1.150.0060.00315.93
7.1.140.0040.00715.90
7.1.130.0030.01015.77
7.1.120.0030.00916.01
7.1.110.0030.01015.93
7.1.100.0040.01317.04
7.1.90.0100.00315.75
7.1.80.0060.00315.97
7.1.70.0050.00616.51
7.1.60.0090.01117.75
7.1.50.0110.00716.34
7.1.40.0030.01015.96
7.1.30.0030.00715.77
7.1.20.0030.00315.70
7.1.10.0000.01315.66
7.1.00.0050.04219.13
7.0.320.0090.00315.42
7.0.310.0070.00715.35
7.0.300.0030.01015.55
7.0.290.0030.01015.62
7.0.280.0120.00315.39
7.0.270.0100.00315.69
7.0.260.0030.01015.42
7.0.250.0060.00615.77
7.0.240.0070.00715.28
7.0.230.0060.00615.62
7.0.220.0070.00715.44
7.0.210.0040.00415.66
7.0.200.0060.00516.04
7.0.190.0060.00615.65
7.0.180.0030.00715.66
7.0.170.0080.00315.69
7.0.160.0070.00415.68
7.0.150.0030.01015.43
7.0.140.0050.04018.78
7.0.130.0000.00715.76
7.0.120.0100.00315.26
7.0.110.0040.01115.53
7.0.100.0030.00915.27
7.0.90.0060.00915.22
7.0.80.0030.03817.79
7.0.70.0080.02717.60
7.0.60.0110.02617.80
7.0.50.0300.02317.96
7.0.40.0000.03616.62
7.0.30.0100.02816.89
7.0.20.0050.02616.87
7.0.10.0050.02516.78
7.0.00.0060.03216.87
5.6.380.0040.00414.70
5.6.370.0060.00614.27
5.6.360.0040.00814.41
5.6.350.0100.00014.48
5.6.340.0050.00514.62
5.6.330.0070.00714.46
5.6.320.0040.00714.46
5.6.310.0090.00614.55
5.6.300.0060.00614.34
5.6.290.0030.01014.57
5.6.280.0090.03817.68
5.6.270.0060.00614.59
5.6.260.0040.00814.53
5.6.250.0040.00414.47
5.6.240.0060.00914.59
5.6.230.0120.03917.56
5.6.220.0070.04517.73
5.6.210.0070.03917.54
5.6.200.0040.04717.69
5.6.190.0120.04317.85
5.6.180.0060.04117.88
5.6.170.0090.02417.64
5.6.160.0050.02817.77
5.6.150.0050.02517.80
5.6.140.0050.03617.81
5.6.130.0120.02517.70
5.6.120.0020.03217.66
5.6.110.0030.04817.73
5.6.100.0120.02917.77
5.6.90.0060.04117.90
5.6.80.0060.04217.34
5.6.70.0100.04017.46
5.6.60.0070.02917.47
5.6.50.0080.04117.38
5.6.40.0110.04417.40
5.6.30.0130.03717.41
5.6.20.0050.03817.30
5.6.10.0090.04317.45
5.6.00.0070.04417.41
5.5.380.0000.01111.07
5.5.370.0110.03815.83
5.5.360.0070.03015.76
5.5.350.0020.04015.85
5.5.340.0130.03816.05
5.5.330.0070.03716.10
5.5.320.0050.04816.04
5.5.310.0050.02516.03
5.5.300.0090.04216.07
5.5.290.0080.04416.02
5.5.280.0070.04715.96
5.5.270.0020.04715.96
5.5.260.0030.02816.19
5.5.250.0020.03015.83
5.5.240.0050.04315.66
5.5.230.0080.03815.70
5.5.220.0020.03115.67
5.5.210.0030.02615.68
5.5.200.0100.03715.72
5.5.190.0050.04515.66
5.5.180.0030.02615.70
5.5.170.0070.00714.20
5.5.160.0070.02915.73
5.5.150.0030.04315.73
5.5.140.0060.03815.65
5.5.130.0070.04015.66
5.5.120.0030.03215.64
5.5.110.0090.01815.68
5.5.100.0050.04315.70
5.5.90.0040.03515.70
5.5.80.0030.04015.63
5.5.70.0080.04015.61
5.5.60.0050.04215.60
5.5.50.0100.03015.61
5.5.40.0030.04215.60
5.5.30.0050.02315.55
5.5.20.0040.02515.65
5.5.10.0060.04315.62
5.5.00.0050.04415.54
5.4.450.0120.04015.43
5.4.440.0070.03815.10
5.4.430.0020.03915.31
5.4.420.0090.02215.21
5.4.410.0070.04315.34
5.4.400.0000.03015.13
5.4.390.0020.02515.15
5.4.380.0060.02615.15
5.4.370.0070.04015.09
5.4.360.0050.04015.05
5.4.350.0020.04215.07
5.4.340.0090.03714.94
5.4.330.0060.00311.31
5.4.320.0050.04314.93
5.4.310.0050.03215.05
5.4.300.0040.04714.97
5.4.290.0060.02515.15
5.4.280.0080.03714.98
5.4.270.0050.02215.05
5.4.260.0100.03515.02
5.4.250.0090.03715.00
5.4.240.0070.02315.23
5.4.230.0070.03015.15
5.4.220.0090.03815.13
5.4.210.0050.02715.07
5.4.200.0060.02715.08
5.4.190.0040.04215.07
5.4.180.0090.03914.98
5.4.170.0030.03115.04
5.4.160.0030.02815.04
5.4.150.0050.02215.02
5.4.140.0070.01913.75
5.4.130.0090.03113.73
5.4.120.0060.02313.71
5.4.110.0070.03813.78
5.4.100.0070.02413.77
5.4.90.0120.02713.78
5.4.80.0040.02813.79
5.4.70.0100.02513.81
5.4.60.0070.02913.76
5.4.50.0050.02913.67
5.4.40.0000.02713.72
5.4.30.0090.03713.63
5.4.20.0080.03413.74
5.4.10.0020.04213.68
5.4.00.0030.04113.46
5.3.290.0050.04512.80
5.3.280.0070.03212.81
5.3.270.0070.03712.82
5.3.260.0030.04712.83
5.3.250.0090.02212.81
5.3.240.0050.03912.82
5.3.230.0040.02612.75
5.3.220.0030.03012.82
5.3.210.0080.03812.81
5.3.200.0050.04112.81
5.3.190.0030.04212.80
5.3.180.0020.03012.74
5.3.170.0070.03512.79
5.3.160.0050.03212.82
5.3.150.0060.03112.77
5.3.140.0050.02312.74
5.3.130.0020.03112.74
5.3.120.0060.03312.76
5.3.110.0030.02412.80
5.3.100.0040.04312.55
5.3.90.0030.04012.50
5.3.80.0070.03212.47
5.3.70.0070.02512.43
5.3.60.0070.03712.49
5.3.50.0020.02312.50
5.3.40.0010.02312.50
5.3.30.0070.03712.38
5.3.20.0050.03812.38
5.3.10.0070.02412.36
5.3.00.0050.02912.34
5.2.170.0030.01811.09
5.2.160.0000.02111.02
5.2.150.0060.01611.07
5.2.140.0050.02011.06
5.2.130.0080.02511.00
5.2.120.0100.01711.04
5.2.110.0050.03310.98
5.2.100.0100.01911.11
5.2.90.0050.03111.12
5.2.80.0060.01711.06
5.2.70.0050.03111.06
5.2.60.0000.03411.03
5.2.50.0040.01910.96
5.2.40.0040.03010.96
5.2.30.0050.02211.02
5.2.20.0050.03011.03
5.2.10.0050.03010.96
5.2.00.0060.01510.92
5.1.60.0020.02310.55
5.1.50.0020.03010.58
5.1.40.0050.02810.56
5.1.30.0030.02310.76
5.1.20.0030.02610.71
5.1.10.0000.01910.60
5.1.00.0040.03010.49
5.0.50.0000.0249.80
5.0.40.0030.0119.80
5.0.30.0000.0359.66
5.0.20.0000.0199.65
5.0.10.0060.0139.54
5.0.00.0080.0379.53
4.4.90.0020.0189.07
4.4.80.0030.0209.07
4.4.70.0030.0189.07
4.4.60.0040.0129.07
4.4.50.0030.0109.07
4.4.40.0000.0329.07
4.4.30.0030.0209.07
4.4.20.0000.0209.07
4.4.10.0020.0219.07
4.4.00.0050.0239.07
4.3.110.0030.0209.07
4.3.100.0020.0209.07
4.3.90.0070.0179.07
4.3.80.0020.0159.07
4.3.70.0010.0189.07
4.3.60.0040.0089.07
4.3.50.0020.0209.07
4.3.40.0030.0279.07
4.3.30.0030.0189.07
4.3.20.0030.0159.07
4.3.10.0020.0179.07
4.3.00.0000.0189.07

preferences:
54.24 ms | 401 KiB | 5 Q