3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentMonth = date("n"); $currentYear = date("Y"); echo $currentMonth . "\n"; echo $currentYear . "\n"; $month = $currentMonth; $year = $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.0100.01018.56
8.3.50.0130.00321.97
8.3.40.0070.00718.95
8.3.30.0140.00018.68
8.3.20.0080.00018.99
8.3.10.0080.00021.08
8.3.00.0040.00421.94
8.2.180.0120.00316.63
8.2.170.0070.01422.96
8.2.160.0070.01020.11
8.2.150.0050.00324.18
8.2.140.0030.00624.66
8.2.130.0070.00026.16
8.2.120.0080.00020.87
8.2.110.0060.00320.32
8.2.100.0090.00317.96
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0080.00017.75
8.2.60.0030.00618.18
8.2.50.0040.00418.07
8.2.40.0040.00418.28
8.2.30.0000.00719.44
8.2.20.0000.00817.74
8.2.10.0080.00017.80
8.2.00.0030.00717.74
8.1.280.0040.01125.92
8.1.270.0110.00423.99
8.1.260.0100.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00022.57
8.1.230.0040.00720.95
8.1.220.0090.00018.77
8.1.210.0040.00418.85
8.1.200.0060.00317.13
8.1.190.0000.00717.51
8.1.180.0050.00318.10
8.1.170.0100.00018.50
8.1.160.0070.00018.79
8.1.150.0070.00018.61
8.1.140.0000.00817.43
8.1.130.0040.00417.89
8.1.120.0000.00717.55
8.1.110.0070.00017.39
8.1.100.0000.00717.53
8.1.90.0040.00417.54
8.1.80.0000.00717.48
8.1.70.0070.00017.49
8.1.60.0000.00817.58
8.1.50.0000.00717.51
8.1.40.0000.00817.34
8.1.30.0000.00817.55
8.1.20.0040.00417.48
8.1.10.0000.00817.59
8.1.00.0040.00717.52
8.0.300.0020.00520.05
8.0.290.0000.00717.18
8.0.280.0030.00318.51
8.0.270.0020.00517.25
8.0.260.0000.00617.03
8.0.250.0000.00817.17
8.0.240.0040.00417.18
8.0.230.0000.00717.03
8.0.220.0000.00717.00
8.0.210.0050.00317.11
8.0.200.0000.00617.14
8.0.190.0030.00517.05
8.0.180.0070.00017.02
8.0.170.0070.00017.14
8.0.160.0000.00717.17
8.0.150.0040.00417.13
8.0.140.0000.00717.08
8.0.130.0060.00013.53
8.0.120.0040.00416.88
8.0.110.0030.00517.15
8.0.100.0000.00717.10
8.0.90.0040.00417.07
8.0.80.0040.01117.14
8.0.70.0040.00416.96
8.0.60.0070.00016.99
8.0.50.0030.00516.95
8.0.30.0150.01117.25
8.0.20.0080.01217.40
8.0.10.0040.00417.33
8.0.00.0110.00616.90
7.4.330.0050.00016.72
7.4.320.0000.00616.41
7.4.300.0050.00316.42
7.4.290.0030.00316.54
7.4.280.0030.00516.50
7.4.270.0000.00716.55
7.4.260.0000.00513.11
7.4.250.0050.00316.38
7.4.240.0070.00016.46
7.4.230.0030.00316.63
7.4.220.0200.00016.38
7.4.210.0100.00516.59
7.4.200.0040.00416.53
7.4.190.0080.00016.65
7.4.160.0130.00316.66
7.4.150.0190.00317.40
7.4.140.0080.01217.86
7.4.130.0090.01116.55
7.4.120.0120.00716.57
7.4.110.0110.01116.49
7.4.100.0100.01316.59
7.4.90.0130.00616.86
7.4.80.0060.01219.39
7.4.70.0130.00316.52
7.4.60.0080.01416.52
7.4.50.0040.00416.64
7.4.40.0040.01122.77
7.4.30.0070.01016.86
7.4.00.0030.01114.95
7.3.330.0030.00313.20
7.3.320.0020.00213.18
7.3.310.0030.00316.46
7.3.300.0030.00316.36
7.3.290.0070.00716.48
7.3.280.0110.00616.40
7.3.270.0140.00317.40
7.3.260.0050.01318.24
7.3.250.0130.00816.62
7.3.240.0100.01016.65
7.3.230.0120.00616.55
7.3.210.0130.01016.55
7.3.200.0080.00819.39
7.3.190.0090.00916.70
7.3.180.0120.00316.42
7.3.170.0160.00016.63
7.3.160.0100.00616.48
7.3.120.0030.01415.15
7.3.00.0080.00516.70
7.2.330.0150.00316.68
7.2.320.0190.00316.60
7.2.310.0110.00616.85
7.2.300.0120.00616.80
7.2.290.0100.01016.93
7.2.130.0120.00917.00
7.2.120.0060.00916.88
7.2.110.0080.01017.20
7.2.100.0110.01117.10
7.2.90.0180.00416.98
7.2.80.0180.00417.16
7.2.70.0180.00316.73
7.2.60.0160.00917.00
7.2.50.0070.01416.91
7.2.40.0150.00716.91
7.2.30.0130.00717.03
7.2.20.0040.01716.77
7.2.10.0130.00316.77
7.2.00.0120.00618.20
7.1.250.0090.00315.77
7.1.240.0130.00515.93
7.1.230.0100.01015.90
7.1.220.0070.00716.05
7.1.210.0120.00615.68
7.1.200.0120.01215.76
7.1.190.0150.00615.64
7.1.180.0190.00715.75
7.1.170.0120.00515.98
7.1.160.0070.01116.03
7.1.150.0070.01115.92
7.1.140.0110.01115.96
7.1.130.0080.01115.92
7.1.120.0120.00815.77
7.1.110.0100.00715.95
7.1.100.0100.00717.20
7.1.90.0120.01215.87
7.1.80.0140.00616.05
7.1.70.0070.00516.63
7.1.60.0120.00717.55
7.1.50.0070.00516.36
7.1.40.0150.00016.09
7.1.30.0130.00616.04
7.1.20.0110.00415.94
7.1.10.0070.00715.76
7.1.00.0030.03119.09
7.0.330.0100.00715.45
7.0.320.0060.00915.49
7.0.310.0080.01115.13
7.0.300.0110.01115.67
7.0.290.0100.01015.14
7.0.280.0170.00415.34
7.0.270.0060.00915.37
7.0.260.0070.01015.59
7.0.250.0070.01015.46
7.0.240.0090.01215.56
7.0.230.0100.00915.60
7.0.220.0130.01015.61
7.0.210.0100.00315.63
7.0.200.0170.00216.27
7.0.190.0140.00315.41
7.0.180.0030.01015.65
7.0.170.0090.00615.70
7.0.160.0070.00715.45
7.0.150.0090.00615.41
7.0.140.0060.04018.81
7.0.130.0040.01415.45
7.0.120.0060.00915.15
7.0.110.0220.00915.57
7.0.100.0250.03917.67
7.0.90.0190.04017.57
7.0.80.0180.02217.75
7.0.70.0300.03817.82
7.0.60.0170.03317.77
7.0.50.0180.02517.88
7.0.40.0080.02516.85
7.0.30.0070.04216.79
7.0.20.0030.05016.82
7.0.10.0080.04216.85
7.0.00.0080.02016.80
5.6.380.0040.01014.21
5.6.370.0110.00614.22
5.6.360.0090.01514.39
5.6.350.0190.00414.18
5.6.340.0140.01114.50
5.6.330.0070.01414.53
5.6.320.0110.01114.51
5.6.310.0030.01114.68
5.6.300.0070.00414.55
5.6.290.0140.00414.29
5.6.280.0050.04017.68
5.6.270.0030.01014.37
5.6.260.0000.01314.67
5.6.250.0050.02617.67
5.6.240.0100.04617.54
5.6.230.0050.02417.50
5.6.220.0080.02117.54
5.6.210.0100.04217.47
5.6.200.0070.02717.72
5.6.190.0080.04017.71
5.6.180.0070.02717.74
5.6.170.0060.04217.85
5.6.160.0070.02217.71
5.6.150.0090.03817.65
5.6.140.0090.04617.63
5.6.130.0130.03317.79
5.6.120.0050.04517.67
5.6.110.0050.02517.68
5.6.100.0060.03017.64
5.6.90.0050.03717.85
5.6.80.0110.03817.36
5.6.70.0070.04417.30
5.6.60.0050.02617.39
5.6.50.0080.04117.31
5.6.40.0040.02617.36
5.6.30.0070.04217.32
5.6.20.0060.02417.48
5.6.10.0090.04517.43
5.6.00.0030.03517.35
5.5.380.0040.04315.87
5.5.370.0030.04916.01
5.5.360.0090.02015.95
5.5.350.0060.03415.89
5.5.340.0100.03616.09
5.5.330.0080.02415.92
5.5.320.0090.02815.89
5.5.310.0140.03516.03
5.5.300.0070.04216.06
5.5.290.0060.04516.01
5.5.280.0050.04016.00
5.5.270.0060.04715.93
5.5.260.0060.02815.95
5.5.250.0090.03715.98
5.5.240.0070.03415.77
5.5.230.0090.02215.71
5.5.220.0020.02515.75
5.5.210.0110.04015.50
5.5.200.0050.02715.56
5.5.190.0070.04115.70
5.5.180.0040.03115.51
5.5.170.0030.00711.27
5.5.160.0100.03415.65
5.5.150.0050.04315.76
5.5.140.0100.02815.68
5.5.130.0060.02015.48
5.5.120.0070.03815.63
5.5.110.0050.02315.66
5.5.100.0060.04015.63
5.5.90.0120.03515.70
5.5.80.0030.03615.55
5.5.70.0100.01715.70
5.5.60.0060.02215.40
5.5.50.0070.03715.51
5.5.40.0110.03915.63
5.5.30.0120.03815.56
5.5.20.0070.04315.42
5.5.10.0080.02615.65
5.5.00.0130.03715.41
5.4.450.0090.04115.10
5.4.440.0100.03815.16
5.4.430.0050.04115.43
5.4.420.0070.04015.26
5.4.410.0050.04215.29
5.4.400.0050.03814.94
5.4.390.0030.03315.00
5.4.380.0030.02214.94
5.4.370.0120.03715.14
5.4.360.0030.03915.07
5.4.350.0010.02114.94
5.4.340.0020.02415.03
5.4.330.0120.00011.18
5.4.320.0020.04514.97
5.4.310.0060.03314.87
5.4.300.0050.02115.09
5.4.290.0050.01715.21
5.4.280.0050.03915.09
5.4.270.0050.03415.10
5.4.260.0080.01614.93
5.4.250.0080.03515.11
5.4.240.0050.02014.89
5.4.230.0020.02315.11
5.4.220.0050.03515.16
5.4.210.0060.03714.96
5.4.200.0040.03815.05
5.4.190.0040.04215.00
5.4.180.0070.03715.08
5.4.170.0060.04115.11
5.4.160.0040.01915.01
5.4.150.0090.03215.18
5.4.140.0050.02113.74
5.4.130.0030.02813.69
5.4.120.0020.02113.81
5.4.110.0050.02413.71
5.4.100.0000.02613.85
5.4.90.0080.01513.72
5.4.80.0050.02013.68
5.4.70.0120.02313.71
5.4.60.0060.04013.72
5.4.50.0070.03613.57
5.4.40.0040.02013.63
5.4.30.0090.03513.54
5.4.20.0040.02313.87
5.4.10.0090.03913.78
5.4.00.0070.04013.52
5.3.290.0070.01912.74
5.3.280.0070.03112.41
5.3.270.0010.03412.54
5.3.260.0050.02412.51
5.3.250.0010.02212.65
5.3.240.0030.02212.57
5.3.230.0040.03012.63
5.3.220.0050.03812.46
5.3.210.0050.03212.43
5.3.200.0000.02512.47
5.3.190.0080.03312.57
5.3.180.0030.02212.63
5.3.170.0050.03712.58
5.3.160.0080.04012.56
5.3.150.0020.02012.61
5.3.140.0070.02212.50
5.3.130.0020.02812.51
5.3.120.0030.03412.47
5.3.110.0020.02512.52
5.3.100.0050.03312.28
5.3.90.0040.02312.24
5.3.80.0020.02312.20
5.3.70.0030.04212.09
5.3.60.0040.02012.28
5.3.50.0050.02712.28
5.3.40.0100.01512.22
5.3.30.0050.01812.21
5.3.20.0070.02711.99
5.3.10.0030.04011.92
5.3.00.0050.03711.96
5.2.170.0060.03111.09
5.2.160.0050.03111.02
5.2.150.0020.02011.18
5.2.140.0040.02411.20
5.2.130.0040.02210.96
5.2.120.0070.01211.05
5.2.110.0020.01711.14
5.2.100.0050.01211.05
5.2.90.0070.01011.11
5.2.80.0020.03511.06
5.2.70.0020.03211.06
5.2.60.0020.03511.13
5.2.50.0070.03011.08
5.2.40.0020.03511.05
5.2.30.0050.02311.06
5.2.20.0040.01411.04
5.2.10.0020.02811.07
5.2.00.0040.02510.88
5.1.60.0020.02210.65
5.1.50.0080.02310.66
5.1.40.0070.01910.67
5.1.30.0040.02510.84
5.1.20.0050.02010.76
5.1.10.0020.02710.66
5.1.00.0040.01210.66
5.0.50.0020.01210.65
5.0.40.0060.02110.65
5.0.30.0050.01310.65
5.0.20.0050.02110.65
5.0.10.0000.02110.65
5.0.00.0010.02310.65
4.4.90.0020.01510.65
4.4.80.0000.01010.65
4.4.70.0000.01010.65
4.4.60.0030.00710.65
4.4.50.0030.01810.65
4.4.40.0000.02810.65
4.4.30.0000.01210.65
4.4.20.0030.01810.65
4.4.10.0000.01010.65
4.4.00.0040.02710.65
4.3.110.0010.01310.65
4.3.100.0030.01410.65
4.3.90.0020.01610.65
4.3.80.0050.02210.65
4.3.70.0000.01610.65
4.3.60.0030.01710.65
4.3.50.0020.01510.65
4.3.40.0020.01310.65
4.3.30.0000.01010.65
4.3.20.0000.01010.65
4.3.10.0000.01710.65
4.3.00.0010.00810.65

preferences:
43.88 ms | 401 KiB | 5 Q