3v4l.org

run code in 300+ PHP versions simultaneously
<?php function date_generator($ex_weeks = array(), $ex_DateTimeObjects = array()) { $kanji_w = array('日', '月', '火', '水', '木', '金', '土'); $current = new DateTime('now', new DateTimezone('Asia/Tokyo')); for ($i = 0; $i < 30; $i++) { $current->add(new DateInterval('P1D')); if ($i < 2 || in_array($current->format('w'), $ex_weeks)) { continue; } foreach ($ex_DateTimeObjects as $object) { if (!$object->diff($current)->days) { continue 2; } } $w = $kanji_w[$current->format(' (w)')]; yield $current->format('n月j日') . $w; } } ?> <select name="date"> <?php foreach (date_generator(array(1), array(new DateTime('12/25'))) as $value): ?> <option value="<?=$value?>"><?=$value?></option> <?php endforeach; ?> </select>

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.40.0040.01119.14
8.3.30.0100.00320.34
8.3.20.0050.00220.34
8.3.10.0000.00821.05
8.3.00.0040.00422.26
8.2.170.0140.00722.96
8.2.160.0070.00722.17
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00321.00
8.2.110.0030.00919.39
8.2.100.0050.00518.16
8.2.90.0040.00419.30
8.2.80.0000.00818.05
8.2.70.0090.00318.00
8.2.60.0030.00618.13
8.2.50.0040.00418.07
8.2.40.0070.00318.40
8.2.30.0000.00719.51
8.2.20.0040.00418.03
8.2.10.0000.00817.96
8.2.00.0000.00817.96
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0080.00320.91
8.1.230.0080.00421.10
8.1.220.0080.00018.77
8.1.210.0090.00019.09
8.1.200.0060.00317.38
8.1.190.0000.00817.65
8.1.180.0000.00818.10
8.1.170.0000.00818.69
8.1.160.0000.00818.93
8.1.150.0000.00818.89
8.1.140.0080.00017.71
8.1.130.0000.00717.95
8.1.120.0000.00817.74
8.1.110.0080.00317.65
8.1.100.0070.00017.69
8.1.90.0040.00417.61
8.1.80.0040.00417.70
8.1.70.0000.00717.70
8.1.60.0050.00317.82
8.1.50.0050.00317.61
8.1.40.0080.00017.69
8.1.30.0030.00617.71
8.1.20.0000.00817.77
8.1.10.0000.00817.64
8.1.00.0040.00417.75
8.0.300.0040.00419.88
8.0.290.0050.00317.30
8.0.280.0050.00218.59
8.0.270.0000.00717.39
8.0.260.0030.00317.07
8.0.250.0040.00417.29
8.0.240.0080.00017.30
8.0.230.0000.00717.30
8.0.220.0000.00817.16
8.0.210.0040.00417.13
8.0.200.0060.00017.32
8.0.190.0000.00817.24
8.0.180.0030.00517.26
8.0.170.0030.00617.11
8.0.160.0070.00017.20
8.0.150.0040.00417.07
8.0.140.0060.00317.24
8.0.130.0050.00313.57
8.0.120.0080.00017.18
8.0.110.0050.00317.23
8.0.100.0080.00017.19
8.0.90.0000.00717.17
8.0.80.0070.01017.16
8.0.70.0000.00817.33
8.0.60.0040.00417.21
8.0.50.0040.00417.06
8.0.30.0100.01217.41
8.0.20.0170.00817.40
8.0.10.0000.00817.23
8.0.00.0120.00716.96
7.4.330.0030.00316.78
7.4.320.0030.00316.63
7.4.300.0030.00316.85
7.4.290.0080.00016.80
7.4.280.0000.00716.69
7.4.270.0070.00016.72
7.4.260.0030.00313.30
7.4.250.0040.00416.76
7.4.240.0070.00016.81
7.4.230.0040.00416.81
7.4.220.0030.01516.72
7.4.210.0060.00916.77
7.4.200.0070.00016.82
7.4.190.0040.00416.75
7.4.160.0160.00816.87
7.4.150.0180.00917.40
7.4.140.0080.01217.86
7.4.130.0060.01316.84
7.4.120.0050.01216.87
7.4.110.0150.00416.99
7.4.100.0150.00416.82
7.4.90.0130.00416.65
7.4.80.0110.01419.39
7.4.70.0220.00016.84
7.4.60.0120.00616.76
7.4.50.0030.00616.45
7.4.40.0070.00722.77
7.4.30.0060.01116.84
7.4.10.0090.00615.18
7.4.00.0090.00915.35
7.3.330.0000.00713.46
7.3.320.0000.00513.62
7.3.310.0040.00416.65
7.3.300.0000.00716.49
7.3.290.0000.01516.57
7.3.280.0110.00616.59
7.3.270.0070.01317.40
7.3.260.0110.01018.24
7.3.250.0130.00816.65
7.3.240.0140.00516.77
7.3.230.0120.01216.82
7.3.210.0150.00316.70
7.3.200.0170.00319.39
7.3.190.0050.01916.70
7.3.180.0140.00416.76
7.3.170.0070.01016.78
7.3.160.0070.01116.59
7.3.130.0110.00515.34
7.3.120.0080.01015.17
7.3.110.0060.00714.97
7.3.100.0100.00415.11
7.3.90.0050.01115.03
7.3.80.0030.01215.03
7.3.70.0050.01014.96
7.3.60.0120.00315.15
7.3.50.0060.00615.11
7.3.40.0090.00615.00
7.3.30.0040.01014.94
7.3.20.0090.00816.95
7.3.10.0090.00516.82
7.3.00.0090.00216.81
7.2.330.0090.00917.11
7.2.320.0110.00716.79
7.2.310.0160.00916.95
7.2.300.0040.01516.68
7.2.290.0150.00317.21
7.2.260.0120.00615.53
7.2.250.0030.01215.08
7.2.240.0080.00815.35
7.2.230.0040.01215.13
7.2.220.0090.00615.21
7.2.210.0050.00915.50
7.2.200.0060.00715.20
7.2.190.0060.00915.32
7.2.180.0060.01115.04
7.2.170.0080.00815.29
7.2.160.0060.00915.38
7.2.150.0070.00917.04
7.2.140.0100.00917.04
7.2.130.0050.01117.13
7.2.120.0070.01017.11
7.2.110.0050.01217.17
7.2.100.0070.00817.09
7.2.90.0040.01217.13
7.2.80.0080.00917.20
7.2.70.0080.01017.15
7.2.60.0100.00717.16
7.2.50.0080.00917.17
7.2.40.0090.00817.14
7.2.30.0070.00917.21
7.2.20.0090.00717.20
7.2.10.0080.00717.16
7.2.00.0050.01017.00
7.1.330.0060.00816.10
7.1.320.0070.01016.11
7.1.310.0060.00716.13
7.1.300.0090.00916.12
7.1.290.0080.00815.99
7.1.280.0100.00716.03
7.1.270.0070.00815.69
7.1.260.0040.01315.88
7.1.250.0060.00916.06
7.1.240.0000.01316.06
7.1.230.0090.00015.72
7.1.220.0070.00315.91
7.1.210.0000.00816.17
7.1.200.0050.00915.90
7.1.190.0080.00816.14
7.1.180.0040.00716.06
7.1.170.0000.01315.90
7.1.160.0050.00515.65
7.1.150.0120.00315.72
7.1.140.0040.00715.98
7.1.130.0000.00815.79
7.1.120.0110.00315.81
7.1.110.0040.01216.25
7.1.100.0090.01116.17
7.1.90.0040.01415.86
7.1.80.0060.01116.10
7.1.70.0060.00916.58
7.1.60.0070.01117.68
7.1.50.0190.00825.69
7.1.40.0080.00815.83
7.1.30.0110.00416.11
7.1.20.0070.00715.83
7.1.10.0070.01016.16
7.1.00.0020.03019.16
7.0.330.0030.00715.78
7.0.320.0070.01115.64
7.0.310.0150.00015.53
7.0.300.0030.01215.77
7.0.290.0080.00815.62
7.0.280.0080.00415.46
7.0.270.0040.01515.70
7.0.260.0110.00815.64
7.0.250.0050.01315.56
7.0.240.0040.01615.53
7.0.230.0070.01115.81
7.0.220.0080.00815.50
7.0.210.0060.01215.59
7.0.200.0050.00716.22
7.0.190.0090.00915.69
7.0.180.0110.00315.71
7.0.170.0020.01415.57
7.0.160.0070.00715.84
7.0.150.0090.00915.67
7.0.140.0030.04318.72
7.0.130.0030.01415.63
7.0.120.0050.01415.63
7.0.110.0100.00715.39
7.0.100.0090.04617.86
7.0.90.0100.02617.82
7.0.80.0060.02417.77
7.0.70.0050.03117.68
7.0.60.0100.03817.77
7.0.50.0080.02517.87
7.0.40.0080.02316.92
7.0.30.0050.04616.88
7.0.20.0070.03316.92
7.0.10.0030.02916.89
7.0.00.0060.03616.86
5.6.400.0030.00814.59
5.6.390.0030.01214.73
5.6.380.0060.00814.76
5.6.370.0100.00714.53
5.6.360.0080.00314.45
5.6.350.0100.00714.83
5.6.340.0040.01314.69
5.6.330.0050.01014.50
5.6.320.0000.02014.59
5.6.310.0060.00614.63
5.6.300.0060.01014.63
5.6.290.0060.00914.45
5.6.280.0100.03817.91
5.6.270.0100.01014.55
5.6.260.0130.00514.69
5.6.250.0080.02117.54
5.6.240.0050.02817.61
5.6.230.0040.02817.71
5.6.220.0080.03717.73
5.6.210.0060.02517.50
5.6.200.0100.03117.88
5.6.190.0050.04117.83
5.6.180.0000.03717.79
5.6.170.0060.02517.88
5.6.160.0150.03817.74
5.6.150.0020.05217.81
5.6.140.0140.03517.87
5.6.130.0120.04017.83
5.6.120.0100.03717.87
5.6.110.0130.04417.80
5.6.100.0030.05117.69
5.6.90.0120.03917.76
5.6.80.0050.04317.47
5.6.70.0030.04317.53
5.6.60.0030.04917.41
5.6.50.0080.04017.47
5.6.40.0100.04317.45
5.6.30.0130.03217.36
5.6.20.0100.04417.28
5.6.10.0050.03917.50
5.6.00.0120.03817.38
5.5.380.0080.02317.43
5.5.370.0070.02217.62
5.5.360.0060.02517.64
5.5.350.0050.02617.54
5.5.340.0080.02217.72
5.5.330.0050.02717.64
5.5.320.0060.02317.75
5.5.310.0080.02517.60
5.5.300.0030.04917.73
5.5.290.0060.04617.74
5.5.280.0080.05017.76
5.5.270.0110.04017.69
5.5.260.0070.04317.65
5.5.250.0070.04817.61
5.5.240.0140.03817.42
5.5.230.0100.04217.31
5.5.220.0080.04517.35
5.5.210.0110.04217.38
5.5.200.0120.03317.45
5.5.190.0060.04417.36
5.5.180.0050.03917.43
5.5.170.0090.00614.54
5.5.160.0130.02117.31
5.5.150.0060.04417.26
5.5.140.0020.04617.45
5.5.130.0090.04317.08
5.5.120.0090.03517.43
5.5.110.0090.03917.48
5.5.100.0090.04217.15
5.5.90.0080.04717.40
5.5.80.0080.04417.35
5.5.70.0070.04517.24
5.5.60.0130.02917.41
5.5.50.0110.03617.16
5.5.40.0100.04017.27
5.5.30.0070.04717.04
5.5.20.0050.04617.30
5.5.10.0050.04717.22
5.5.00.0090.04217.10
5.4.450.0080.03815.15
5.4.440.0000.04814.90
5.4.430.0070.02915.07
5.4.420.0040.03615.11
5.4.410.0050.04215.12
5.4.400.0090.03914.92
5.4.390.0050.04215.01
5.4.380.0100.03815.05
5.4.370.0070.04314.98
5.4.360.0040.04314.82
5.4.350.0050.03014.83
5.4.340.0040.03914.87
5.4.330.0060.00610.99
5.4.320.0030.04514.95
5.4.310.0050.04014.85
5.4.300.0050.04014.83
5.4.290.0050.03714.88
5.4.280.0000.04214.73
5.4.270.0080.04014.83
5.4.260.0020.03014.96
5.4.250.0080.04114.87
5.4.240.0070.03314.68
5.4.230.0070.03214.84
5.4.220.0050.04015.01
5.4.210.0070.03714.86
5.4.200.0050.03914.97
5.4.190.0100.03314.98
5.4.180.0050.04114.87
5.4.170.0110.03514.88
5.4.160.0030.04115.04
5.4.150.0050.02514.72
5.4.140.0100.03513.55
5.4.130.0080.03513.64
5.4.120.0000.04013.69
5.4.110.0050.04013.59
5.4.100.0040.04213.59
5.4.90.0060.04113.55
5.4.80.0070.03913.56
5.4.70.0080.02313.65
5.4.60.0140.02613.67
5.4.50.0080.03813.61
5.4.40.0040.03413.48
5.4.30.0100.03713.55
5.4.20.0050.04113.51
5.4.10.0080.04013.52
5.4.00.0070.03313.44
5.3.290.0080.04012.55
5.3.280.0080.03812.46
5.3.270.0020.04312.46
5.3.260.0070.04212.38
5.3.250.0050.03812.50
5.3.240.0070.03912.27
5.3.230.0020.02712.48
5.3.220.0070.03712.43
5.3.210.0070.04012.46
5.3.200.0070.03812.38
5.3.190.0070.03612.45
5.3.180.0050.02412.40
5.3.170.0050.04212.51
5.3.160.0080.03712.57
5.3.150.0030.03712.40
5.3.140.0080.04312.42
5.3.130.0100.04112.31
5.3.120.0050.04212.54
5.3.110.0080.03812.49
5.3.100.0050.04012.34
5.3.90.0020.02812.31
5.3.80.0050.04112.20
5.3.70.0080.03512.16
5.3.60.0040.03812.38
5.3.50.0070.03412.20
5.3.40.0060.04112.28
5.3.30.0100.03612.30
5.3.20.0100.03512.19
5.3.10.0070.03212.16
5.3.00.0050.03812.17
5.2.170.0130.06014.28
5.2.160.0030.05314.28
5.2.150.0030.03714.28
5.2.140.0070.06314.28
5.2.130.0030.03714.28
5.2.120.0070.06014.28
5.2.110.0070.06014.28
5.2.100.0030.06314.28
5.2.90.0170.04714.28
5.2.80.0030.05714.28
5.2.70.0070.06014.28
5.2.60.0030.06314.28
5.2.50.0070.04314.28
5.2.40.0030.04014.28
5.2.30.0070.05714.28
5.2.20.0030.05014.28
5.2.10.0070.05314.28
5.2.00.0000.06314.28
5.1.60.0030.03014.28
5.1.50.0100.04714.28
5.1.40.0000.06014.28
5.1.30.0000.05314.28
5.1.20.0100.02314.28
5.1.10.0070.05014.28
5.1.00.0030.06014.28
5.0.50.0070.03714.28
5.0.40.0100.03714.28
5.0.30.0070.06014.28
5.0.20.0030.04314.28
5.0.10.0000.04714.28
5.0.00.0100.05714.28
4.4.90.0000.03714.28
4.4.80.0000.03714.28
4.4.70.0070.01314.28
4.4.60.0070.02314.28
4.4.50.0000.03714.28
4.4.40.0070.05314.28
4.4.30.0100.03014.28
4.4.20.0000.03714.28
4.4.10.0030.03014.28
4.4.00.0030.05314.28
4.3.110.0000.03314.28
4.3.100.0000.04014.28
4.3.90.0030.03314.28
4.3.80.0030.05314.28
4.3.70.0000.03714.28
4.3.60.0070.02714.28
4.3.50.0030.02714.28
4.3.40.0070.04714.28
4.3.30.0070.03314.28
4.3.20.0070.03314.28
4.3.10.0000.04014.28
4.3.00.0000.03714.28

preferences:
67.13 ms | 400 KiB | 5 Q