3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = 2023; $firstDayOfYear = strtotime("first sunday january " . $year); //first Sunday of year $nextSunday = strtotime('sunday', $firstDayOfYear); $nextSaturday = strtotime('saturday', $nextSunday); $i = 0; while (date('Y', $nextSunday) == $year) { $filenames[$i] = date('M. j, Y', $nextSunday) . ' to ' . date('M. j, Y', $nextSaturday); $nextSaturday = strtotime('+1 week', $nextSaturday); $nextSunday = strtotime('+1 week', $nextSunday); $i++; } echo $filenames[0];

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.120.0090.00020.61
8.3.110.0000.00920.94
8.3.100.0030.00616.53
8.3.90.0040.00426.77
8.3.80.0030.00719.36
8.3.70.0030.01218.20
8.3.60.0100.00718.30
8.3.50.0110.00623.64
8.3.40.0090.00619.10
8.3.30.0130.00319.02
8.3.20.0030.00621.02
8.3.10.0080.00022.05
8.3.00.0000.00822.07
8.2.240.0100.00317.11
8.2.230.0060.00322.58
8.2.220.0040.00424.06
8.2.210.0050.00326.77
8.2.200.0070.00318.88
8.2.190.0030.01216.58
8.2.180.0070.01416.49
8.2.170.0040.01119.22
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00426.16
8.2.110.0060.00321.09
8.2.100.0030.01019.89
8.2.90.0110.00019.30
8.2.80.0040.00417.97
8.2.70.0040.00417.88
8.2.60.0050.00318.18
8.2.50.0040.00418.07
8.2.40.0000.00818.34
8.2.30.0000.00818.12
8.2.20.0000.00818.30
8.2.10.0040.00419.49
8.2.00.0000.00819.50
8.1.300.0100.01016.29
8.1.290.0060.00330.84
8.1.280.0040.01425.92
8.1.270.0100.00023.93
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0090.00021.45
8.1.230.0040.00722.20
8.1.220.0040.00417.91
8.1.210.0030.00618.77
8.1.200.0070.00317.60
8.1.190.0060.00317.60
8.1.180.0000.00818.10
8.1.170.0070.00318.80
8.1.160.0000.00819.05
8.1.150.0040.00419.13
8.1.140.0060.00322.65
8.1.130.0050.00320.31
8.1.120.0040.00417.66
8.1.110.0070.00317.64
8.1.100.0000.00817.61
8.1.90.0050.00317.75
8.1.80.0000.00917.73
8.1.70.0000.00817.65
8.1.60.0040.00417.67
8.1.50.0060.00317.74
8.1.40.0000.00817.69
8.1.30.0030.00517.67
8.1.20.0040.00417.83
8.1.10.0030.00617.77
8.1.00.0030.00717.61
8.0.300.0030.00618.83
8.0.290.0040.00416.88
8.0.280.0050.00318.57
8.0.270.0070.00018.18
8.0.260.0050.00320.18
8.0.250.0030.00317.14
8.0.240.0030.00317.20
8.0.230.0000.00717.18
8.0.220.0000.00817.07
8.0.210.0050.00317.16
8.0.200.0060.00017.21
8.0.190.0060.00317.14
8.0.180.0000.00817.21
8.0.170.0080.00017.16
8.0.160.0000.00717.10
8.0.150.0060.00317.00
8.0.140.0030.00617.07
8.0.130.0000.00613.47
8.0.120.0080.00017.12
8.0.110.0070.00017.00
8.0.100.0000.00717.12
8.0.90.0040.00417.22
8.0.80.0030.01217.13
8.0.70.0060.00317.16
8.0.60.0040.00416.96
8.0.50.0030.00617.10
8.0.30.0140.00317.56
8.0.20.0180.00917.52
8.0.10.0000.00717.16
8.0.00.0120.01517.11
7.4.330.0000.00516.76
7.4.320.0000.00716.79
7.4.300.0050.00316.66
7.4.290.0040.00416.79
7.4.280.0060.00616.83
7.4.270.0030.00316.80
7.4.260.0060.00013.51
7.4.250.0030.00316.59
7.4.240.0030.00516.66
7.4.230.0000.00816.81
7.4.220.0030.00416.71
7.4.210.0080.01016.72
7.4.200.0050.00216.61
7.4.130.0120.00616.87
7.4.120.0110.00616.85
7.4.110.0090.01216.74
7.4.100.0090.01416.72
7.4.90.0110.00916.68
7.4.80.0130.00419.39
7.4.70.0200.00316.72
7.4.60.0140.00416.66
7.4.50.0070.00716.70
7.4.40.0100.00716.78
7.4.10.0110.01416.78
7.4.00.0060.01716.84
7.3.330.0040.00416.57
7.3.320.0050.00013.44
7.3.310.0070.00016.45
7.3.300.0030.00316.58
7.3.290.0070.01016.55
7.3.260.0140.00716.72
7.3.230.0130.01016.46
7.3.210.0140.00316.64
7.3.200.0070.01016.58
7.3.190.0070.01016.66
7.3.180.0100.00616.50
7.3.170.0140.00616.70
7.3.160.0030.01516.68
7.3.130.0070.01516.64
7.3.120.0100.00716.48
7.3.110.0180.00616.68
7.3.100.0060.01316.56
7.3.90.0000.01516.63
7.3.80.0090.00916.39
7.3.70.0090.00916.54
7.3.60.0060.01816.51
7.3.50.0110.01116.61
7.3.40.0150.00716.70
7.3.30.0100.00716.48
7.3.20.0030.01416.63
7.3.10.0040.01316.51
7.3.00.0080.01116.46
7.2.330.0070.01117.14
7.2.320.0000.01717.01
7.2.310.0030.01417.11
7.2.300.0000.01816.91
7.2.290.0070.01117.09
7.2.260.0100.01316.90
7.2.250.0120.00616.83
7.2.240.0160.00717.00
7.2.230.0050.01816.69
7.2.220.0040.01416.76
7.2.210.0060.01916.71
7.2.200.0090.00916.81
7.2.190.0130.01316.81
7.2.180.0130.01016.76
7.2.170.0150.00816.70
7.2.160.0030.01416.65
7.2.150.0090.00816.81
7.2.140.0070.01116.84
7.2.130.0140.00716.79
7.2.120.0050.01416.96
7.2.110.0130.01016.64
7.2.100.0340.00916.77
7.2.90.0150.00416.88
7.2.80.0060.01316.83
7.2.70.0070.01016.75
7.2.60.0140.00316.88
7.2.50.0120.00816.90
7.2.40.0060.01316.84
7.2.30.0030.02016.80
7.2.20.0200.00316.88
7.2.10.0060.01116.82
7.2.00.0140.00416.82

preferences:
28.8 ms | 403 KiB | 5 Q