3v4l.org

run code in 300+ PHP versions simultaneously
<?php $how_many_years = 8; $min = 1; $max = 365; for($i = 1; $i <= $how_many_years; $i++ ) { print_r(array( array( 'id' => 'year-'.$i.'-min', 'default' => $min, // first day number of the year ), array( 'id' => 'year-'.$i.'-max', 'default' => $max, //last day number of the year )) ); $min = $max + 1; $max = $min + 365; }

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.70.0150.00018.43
8.3.60.0060.00918.05
8.3.50.0140.00017.93
8.3.40.0070.00718.56
8.3.30.0090.00618.60
8.3.20.0040.00421.60
8.3.10.0050.00318.46
8.3.00.0030.00619.25
8.2.190.0130.00716.58
8.2.180.0120.00325.92
8.2.170.0070.01422.96
8.2.160.0130.00319.41
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00420.39
8.2.120.0050.00326.35
8.2.110.0060.00320.35
8.2.100.0040.00817.78
8.2.90.0000.00920.64
8.2.80.0040.00419.28
8.2.70.0000.00818.16
8.2.60.0050.00318.22
8.2.50.0050.00318.10
8.2.40.0040.00419.38
8.2.30.0000.00819.20
8.2.20.0060.00318.22
8.2.10.0040.00419.54
8.2.00.0050.00217.98
8.1.280.0040.01125.92
8.1.270.0040.00420.13
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0080.00323.65
8.1.230.0040.00822.15
8.1.220.0060.00317.78
8.1.210.0060.00319.04
8.1.200.0000.00817.35
8.1.190.0000.00917.22
8.1.180.0000.00918.10
8.1.170.0080.00018.51
8.1.160.0040.00418.83
8.1.150.0000.00718.84
8.1.140.0050.00320.18
8.1.130.0030.00320.13
8.1.120.0040.00417.49
8.1.110.0000.00817.46
8.1.100.0080.00017.48
8.1.90.0070.00017.45
8.1.80.0040.00417.33
8.1.70.0030.00517.41
8.1.60.0070.00317.57
8.1.50.0040.00417.48
8.1.40.0000.00817.39
8.1.30.0040.00417.64
8.1.20.0000.00717.64
8.1.10.0040.00417.56
8.1.00.0040.00417.47
8.0.300.0040.00419.88
8.0.290.0000.00816.75
8.0.280.0030.00318.33
8.0.270.0030.00317.25
8.0.260.0060.00318.47
8.0.250.0000.00716.97
8.0.240.0080.00316.93
8.0.230.0030.00316.85
8.0.220.0040.00416.87
8.0.210.0070.00016.88
8.0.200.0060.00016.93
8.0.190.0000.00816.95
8.0.180.0080.00016.97
8.0.170.0000.00816.90
8.0.160.0080.00016.84
8.0.150.0000.00716.70
8.0.140.0040.00416.84
8.0.130.0030.00313.35
8.0.120.0030.00516.74
8.0.110.0050.00216.89
8.0.100.0000.00716.77
8.0.90.0040.00416.94
8.0.80.0080.00816.81
8.0.70.0040.00416.78
8.0.60.0040.00416.79
8.0.50.0040.00416.75
8.0.30.0130.00616.98
8.0.20.0140.00717.04
8.0.10.0040.00417.01
8.0.00.0120.01016.77
7.4.330.0030.00315.55
7.4.320.0040.00416.42
7.4.300.0030.00316.54
7.4.290.0070.00016.57
7.4.280.0030.00516.50
7.4.270.0090.00016.60
7.4.260.0030.00316.59
7.4.250.0000.00816.45
7.4.240.0030.00416.60
7.4.230.0070.00016.40
7.4.220.0000.00816.69
7.4.210.0070.00816.58
7.4.200.0030.00316.66
7.4.160.0100.00716.48
7.4.140.0100.00717.86
7.4.130.0060.01116.41
7.4.120.0060.01416.50
7.4.110.0080.00816.45
7.4.100.0150.00316.41
7.4.90.0110.00616.54
7.4.80.0070.01019.39
7.4.70.0000.01816.49
7.4.60.0060.01616.54
7.4.50.0040.00816.31
7.4.40.0100.00716.56
7.4.00.0070.01015.08
7.3.330.0020.00313.14
7.3.320.0000.00613.23
7.3.310.0040.00416.41
7.3.300.0070.00016.36
7.3.290.0030.00316.36
7.3.280.0050.01016.31
7.3.260.0070.01216.51
7.3.240.0120.00616.38
7.3.230.0110.00516.54
7.3.210.0130.00416.57
7.3.200.0060.00916.42
7.3.190.0070.01416.52
7.3.180.0140.00316.57
7.3.170.0150.00616.64
7.3.160.0040.01216.42
7.3.120.0120.00614.80
7.3.110.0030.01514.99
7.3.100.0030.00914.88
7.3.90.0070.00714.80
7.3.80.0110.00315.13
7.3.70.0080.00414.96
7.3.60.0080.00014.96
7.3.50.0040.00414.59
7.3.40.0060.00914.58
7.3.30.0080.00614.82
7.3.20.0080.00416.72
7.3.10.0040.00816.61
7.3.00.0090.00516.72
7.2.330.0120.00616.59
7.2.320.0030.01316.78
7.2.310.0130.01016.37
7.2.300.0090.00916.86
7.2.290.0120.00616.44
7.2.250.0060.00915.23
7.2.240.0030.01415.07
7.2.230.0040.01415.06
7.2.220.0080.00815.27
7.2.210.0100.00714.96
7.2.200.0080.00415.18
7.2.190.0060.00615.12
7.2.180.0040.01115.00
7.2.170.0030.01015.04
7.2.150.0090.01016.94
7.2.140.0090.01416.91
7.2.130.0060.00716.90
7.2.120.0090.00716.93
7.2.110.0120.00516.71
7.2.100.0090.00516.77
7.2.90.0080.00817.09
7.2.80.0100.00716.84
7.2.70.0080.00916.98
7.2.60.0100.00616.78
7.2.50.0090.00716.93
7.2.40.0100.00516.78
7.2.30.0090.00416.83
7.2.20.0060.00816.75
7.2.10.0020.01116.74
7.2.00.0090.00316.91
7.1.330.0030.01315.82
7.1.320.0060.00915.48
7.1.310.0000.01816.00
7.1.300.0030.00615.56
7.1.290.0040.01115.85
7.1.280.0030.01015.81
7.1.270.0000.01115.96
7.1.260.0000.00915.99
7.1.250.0080.00415.79

preferences:
47.5 ms | 401 KiB | 5 Q