3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentMonth = date("n"); $currentYear = date("Y"); echo $currentMonth . "\n"; echo $currentYear; $firstDayOfTheMonth = mktime(0, 0, 0, $month, 1, $year); $d = getdate($firstDayOfTheMonth); // Vasarnap helyett hetfo az elso nap a heten. $dayOfTheWeekOfFirstDayOfTheMonth = (6 + $d["wday"]) % 7 + 1; $totalDaysInCurrentMonth = date("t"); $kellenekUresNapokAHonapVegen = true; echo $firstDayOfTheMonth . "\n"; echo $d . "\n"; echo $dayOfTheWeekOfFirstDayOfTheMonth . "\n"; echo $totalDaysInCurrentMonth . "\n"; ?>

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.0230.00018.43
8.3.50.0100.00821.26
8.3.40.0160.00418.92
8.3.30.0070.01018.68
8.3.20.0050.00318.85
8.3.10.0130.00720.70
8.3.00.0070.00023.53
8.2.180.0110.01116.61
8.2.170.0200.00022.96
8.2.160.0070.01021.95
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.70
8.2.110.0070.00322.08
8.2.100.0040.00817.90
8.2.90.0040.00419.38
8.2.80.0070.00418.04
8.2.70.0120.00017.88
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0000.00918.41
8.2.30.0000.00820.03
8.2.20.0040.00417.92
8.2.10.0080.00017.95
8.2.00.0040.00417.84
8.1.280.0070.01425.92
8.1.270.0030.00623.99
8.1.260.0140.00326.35
8.1.250.0040.00428.09
8.1.240.0110.00020.68
8.1.230.0090.00320.84
8.1.220.0050.00218.77
8.1.210.0030.00518.88
8.1.200.0000.01017.48
8.1.190.0040.00417.53
8.1.180.0030.00618.10
8.1.170.0040.00418.91
8.1.160.0040.00418.98
8.1.150.0030.00518.78
8.1.140.0040.00417.57
8.1.130.0050.00217.97
8.1.120.0000.00717.46
8.1.110.0040.00417.43
8.1.100.0000.00717.47
8.1.90.0040.00417.53
8.1.80.0030.00317.46
8.1.70.0000.00717.44
8.1.60.0050.00317.56
8.1.50.0040.00417.52
8.1.40.0000.00717.54
8.1.30.0040.00417.63
8.1.20.0050.00517.57
8.1.10.0040.00417.67
8.1.00.0040.00417.55
8.0.300.0070.00320.08
8.0.290.0040.00416.88
8.0.280.0030.00318.58
8.0.270.0030.00317.35
8.0.260.0030.00317.04
8.0.250.0040.00417.20
8.0.240.0000.00817.13
8.0.230.0000.00717.06
8.0.220.0070.00017.12
8.0.210.0070.00017.14
8.0.200.0040.00417.21
8.0.190.0040.00417.16
8.0.180.0060.00317.13
8.0.170.0030.00617.06
8.0.160.0000.00817.14
8.0.150.0050.00317.18
8.0.140.0030.00816.96
8.0.130.0030.00313.51
8.0.120.0060.00317.16
8.0.110.0000.00716.99
8.0.100.0070.00016.89
8.0.90.0040.00416.89
8.0.80.0060.01217.06
8.0.70.0030.00516.93
8.0.60.0040.00416.99
8.0.50.0030.00517.18
8.0.30.0160.00317.12
8.0.20.0130.00617.41
8.0.10.0000.00717.25
8.0.00.0110.00716.97
7.4.330.0000.00514.69
7.4.320.0000.00616.54
7.4.300.0030.00316.54
7.4.290.0000.00816.63
7.4.280.0000.00816.39
7.4.270.0030.00516.64
7.4.260.0050.00013.18
7.4.250.0000.00816.45
7.4.240.0070.00016.54
7.4.230.0030.00316.57
7.4.220.0130.01216.47
7.4.210.0080.00716.60
7.4.200.0000.00716.57
7.4.190.0000.00716.72
7.4.160.0120.00416.52
7.4.150.0120.00617.40
7.4.140.0100.00917.86
7.4.130.0120.00716.58
7.4.120.0120.00516.71
7.4.110.0140.00416.73
7.4.100.0130.01016.84
7.4.90.0140.00316.71
7.4.80.0060.01619.04
7.4.70.0140.00316.49
7.4.60.0060.01316.38
7.4.50.0000.00816.51
7.4.40.0040.01222.27
7.4.30.0100.00716.68
7.4.00.0030.01115.00
7.3.330.0030.00213.41
7.3.320.0030.00513.34
7.3.310.0070.00016.45
7.3.300.0080.00016.44
7.3.290.0110.00316.48
7.3.280.0140.00316.41
7.3.270.0160.00317.40
7.3.260.0110.01018.24
7.3.250.0080.00916.59
7.3.240.0170.00416.37
7.3.230.0120.00616.61
7.3.210.0000.01716.78
7.3.200.0110.00719.39
7.3.190.0060.01516.44
7.3.180.0060.00916.70
7.3.170.0060.01216.61
7.3.160.0090.01316.55
7.3.120.0060.01015.09
7.3.110.0090.00615.25
7.3.100.0090.00315.19
7.3.90.0130.00315.09
7.3.80.0070.00314.86
7.3.70.0090.00014.89
7.3.60.0090.00615.06
7.3.50.0060.00315.19
7.3.40.0100.00315.01
7.3.30.0120.00315.06
7.3.20.0030.01316.87
7.3.10.0040.00716.70
7.3.00.0070.00916.72
7.2.330.0090.00916.73
7.2.320.0150.00916.69
7.2.310.0060.01716.86
7.2.300.0120.00316.59
7.2.290.0080.00816.65
7.2.250.0040.01115.59
7.2.240.0150.00415.36
7.2.230.0030.01615.11
7.2.220.0060.01015.20
7.2.210.0030.01015.18
7.2.200.0080.00415.04
7.2.190.0000.00915.32
7.2.180.0040.00815.00
7.2.170.0070.00715.24
7.2.130.0150.00516.85
7.2.120.0120.00716.85
7.2.110.0110.00416.80
7.2.100.0050.01116.87
7.2.90.0030.01216.87
7.2.80.0090.00516.96
7.2.70.0010.00817.07
7.2.60.0140.00417.13
7.2.50.0140.00317.05
7.2.40.0120.00717.02
7.2.30.0130.00817.04
7.2.20.0090.00416.84
7.2.10.0110.00716.87
7.2.00.0050.00817.91
7.1.330.0070.00715.93
7.1.320.0060.00915.68
7.1.310.0000.01215.68
7.1.300.0000.01515.68
7.1.290.0060.00615.94
7.1.280.0030.00715.84
7.1.270.0030.01516.02
7.1.260.0100.00316.09
7.1.250.0040.01015.72
7.1.100.0030.01018.40
7.1.70.0030.00317.38
7.1.60.0090.01619.40
7.1.50.0060.00917.25
7.1.00.0030.08322.54
7.0.200.0040.00816.96
7.0.140.0070.07022.17
7.0.100.0000.06321.97
7.0.90.0130.04321.79
7.0.80.0030.07321.71
7.0.70.0100.08021.77
7.0.60.0070.05021.75
7.0.50.0030.08322.12
7.0.40.0130.07720.10
7.0.30.0030.08720.13
7.0.20.0030.08320.13
7.0.10.0100.07319.95
7.0.00.0000.05720.07
5.6.280.0100.06720.90
5.6.250.0030.07720.81
5.6.240.0130.07320.60
5.6.230.0000.08320.59
5.6.220.0000.08320.70
5.6.210.0030.08020.52
5.6.200.0030.08021.04
5.6.190.0030.07721.08
5.6.180.0070.08321.11
5.6.170.0030.08321.02
5.6.160.0030.07721.08
5.6.150.0070.07321.16
5.6.140.0030.08721.04
5.6.130.0000.06321.16
5.6.120.0030.08721.16
5.6.110.0030.09020.92
5.6.100.0000.08721.03
5.6.90.0000.09021.15
5.6.80.0070.07320.48
5.6.70.0030.04020.39
5.6.60.0070.06720.46
5.6.50.0070.04320.39
5.6.40.0000.05020.31
5.6.30.0030.05020.46
5.6.20.0130.06320.48
5.6.10.0030.04720.40
5.6.00.0000.08320.44
5.5.380.0070.04320.44
5.5.370.0070.05020.54
5.5.360.0000.08720.34
5.5.350.0070.08020.46
5.5.340.0070.04320.89
5.5.330.0070.08720.84
5.5.320.0070.08320.79
5.5.310.0070.07320.82
5.5.300.0100.04720.92
5.5.290.0070.08020.79
5.5.280.0030.08320.84
5.5.270.0030.08020.84
5.5.260.0100.06720.88
5.5.250.0000.05720.58
5.5.240.0070.04320.18
5.5.230.0070.06720.18
5.5.220.0070.04320.25
5.5.210.0030.04720.30
5.5.200.0030.03720.27
5.5.190.0000.07720.13
5.5.180.0000.07720.10
5.5.160.0030.06320.14
5.5.150.0030.06319.98
5.5.140.0030.06720.12
5.5.130.0100.06720.21
5.5.120.0030.04720.25
5.5.110.0100.03719.98
5.5.100.0130.06020.16
5.5.90.0100.06720.06
5.5.80.0070.07720.16
5.5.70.0000.08720.11
5.5.60.0070.07320.03
5.5.50.0030.05720.05
5.5.40.0030.04320.02
5.5.30.0030.03720.14
5.5.20.0130.06719.94
5.5.10.0030.07719.97
5.5.00.0070.08019.96
5.4.450.0070.07719.12
5.4.440.0030.07719.39
5.4.430.0130.04719.35
5.4.420.0000.07719.11
5.4.410.0000.05719.10
5.4.400.0030.06718.97
5.4.390.0070.06319.05
5.4.380.0000.04718.90
5.4.370.0070.06719.03
5.4.360.0030.03718.98
5.4.350.0030.07318.98
5.4.340.0000.08019.10
5.4.320.0000.08318.99
5.4.310.0000.07718.96
5.4.300.0070.06318.80
5.4.290.0000.05019.14
5.4.280.0030.04319.07
5.4.270.0070.06319.22
5.4.260.0100.07018.96
5.4.250.0070.05319.11
5.4.240.0070.05719.06
5.4.230.0070.06018.80
5.4.220.0030.04719.06
5.4.210.0070.07319.13
5.4.200.0030.07719.22
5.4.190.0000.04018.95
5.4.180.0100.04018.80
5.4.170.0070.07018.93
5.4.160.0100.06018.79
5.4.150.0030.07318.97
5.4.140.0070.07016.34
5.4.130.0030.06716.13
5.4.120.0030.07016.32
5.4.110.0070.06716.25
5.4.100.0070.06316.25
5.4.90.0000.08016.38
5.4.80.0070.07316.34
5.4.70.0000.07716.30
5.4.60.0030.04316.19
5.4.50.0070.07016.41
5.4.40.0100.05716.37
5.4.30.0030.04016.18
5.4.20.0000.08016.23
5.4.10.0070.03316.26
5.4.00.0070.03315.77
5.3.290.0030.08014.66
5.3.280.0030.07014.59
5.3.270.0000.05714.46
5.3.260.0030.06714.46
5.3.250.0030.07714.55
5.3.240.0100.07014.46
5.3.230.0030.07714.59
5.3.220.0000.04014.57
5.3.210.0000.04014.54
5.3.200.0000.08014.50
5.3.190.0030.07314.52
5.3.180.0130.06714.38
5.3.170.0070.04014.38
5.3.160.0000.08014.41
5.3.150.0030.06014.47
5.3.140.0030.07314.37
5.3.130.0030.07714.50
5.3.120.0000.04714.41
5.3.110.0000.07014.38
5.3.100.0030.06313.90
5.3.90.0000.04314.02
5.3.80.0070.03713.92
5.3.70.0070.06314.03
5.3.60.0000.07713.98
5.3.50.0000.04013.93
5.3.40.0000.06313.81
5.3.30.0030.03713.68
5.3.20.0070.07013.56
5.3.10.0000.07313.43
5.3.00.0100.06013.55
5.2.170.0030.06312.73
5.2.160.0030.05712.73
5.2.150.0000.03712.73
5.2.140.0030.07312.73
5.2.130.0100.06012.73
5.2.120.0030.06312.73
5.2.110.0030.03312.73
5.2.100.0000.05712.73
5.2.90.0070.04012.73
5.2.80.0000.06712.73
5.2.70.0030.05312.73
5.2.60.0000.06712.73
5.2.50.0030.06012.73
5.2.40.0030.06012.73
5.2.30.0030.05312.73
5.2.20.0000.06712.73
5.2.10.0000.06312.73
5.2.00.0000.03012.73
5.1.60.0030.05012.73
5.1.50.0030.04012.73
5.1.40.0000.04312.73
5.1.30.0100.05012.73
5.1.20.0000.03312.73
5.1.10.0000.05312.73
5.1.00.0070.05012.73
5.0.50.0000.03712.73
5.0.40.0070.03712.73
5.0.30.0000.05712.73
5.0.20.0070.04712.73
5.0.10.0030.02712.73
5.0.00.0030.06312.73
4.4.90.0000.03712.73
4.4.80.0000.01712.73
4.4.70.0000.02012.73
4.4.60.0030.03312.73
4.4.50.0030.03312.73
4.4.40.0030.04012.73
4.4.30.0000.02012.73
4.4.20.0070.02712.73
4.4.10.0030.03312.73
4.4.00.0000.05012.73
4.3.110.0000.03712.73
4.3.100.0000.03012.73
4.3.90.0000.01712.73
4.3.80.0000.04312.73
4.3.70.0030.03012.73
4.3.60.0000.03312.73
4.3.50.0030.03712.73
4.3.40.0030.04312.73
4.3.30.0030.03312.73
4.3.20.0000.03012.73
4.3.10.0000.03712.73
4.3.00.0030.01712.73

preferences:
44.83 ms | 401 KiB | 5 Q