3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dir = getcwd(); $total = PHP_INT_MAX + 1337; for ($i = 0; $i < $total; ++$i) { $filename = $dir . str_pad($i, 6, '0', STR_PAD_LEFT); touch($filename); } $files = scandir($dir); echo 'scandir: ' . (count($files) - 2) . '/' . $total. PHP_EOL;

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.01718.20
8.3.50.0190.01221.92
8.3.40.0100.01718.71
8.3.30.0210.00922.96
8.3.20.0140.00722.96
8.2.180.0160.01316.50
8.2.170.0230.00022.96
8.2.160.0230.00020.33
8.2.150.0090.01319.14
8.1.280.0130.01025.92
8.0.120.0060.00615.12
8.0.110.0060.00615.10
8.0.100.0070.00515.13
8.0.90.0070.00415.14
8.0.80.0080.01415.13
8.0.70.0070.00715.04
8.0.60.0030.01015.07
8.0.50.0100.00315.01
8.0.30.0200.01215.75
8.0.20.0170.01216.07
8.0.10.0070.00515.09
8.0.00.0210.01015.58
7.4.250.0050.00814.75
7.4.240.0060.00714.66
7.4.230.0110.00214.66
7.4.220.0120.01414.80
7.4.210.0130.01215.75
7.4.200.0070.00514.83
7.4.190.0090.00314.88
7.4.180.0120.00313.27
7.4.160.0160.00714.80
7.4.150.0160.00815.32
7.4.140.0210.01116.27
7.4.130.0250.00915.30
7.4.120.0220.00715.30
7.4.110.0150.01114.79
7.4.100.0170.01114.81
7.4.90.0200.00514.77
7.4.80.0100.01216.09
7.4.70.0180.00814.82
7.4.60.0170.00814.79
7.4.50.0100.00314.60
7.4.40.0050.01217.59
7.4.30.0130.00614.70
7.4.20.0060.00513.11
7.4.10.0140.00013.10
7.4.00.0120.00213.11
7.3.310.0060.00714.65
7.3.300.0070.00514.60
7.3.290.0110.00814.70
7.3.280.0150.01315.46
7.3.270.0130.01015.21
7.3.260.0180.01316.53
7.3.250.0160.01115.20
7.3.240.0150.00814.72
7.3.230.0130.00814.75
7.3.220.0060.00313.18
7.3.210.0190.00814.60
7.3.200.0170.00616.02
7.3.190.0100.01014.83
7.3.180.0170.00714.53
7.3.170.0150.00914.77
7.3.160.0160.00514.47
7.3.150.0060.00613.03
7.3.140.0100.00013.06
7.3.130.0030.00712.77
7.3.120.0060.00312.99
7.3.110.0100.00312.87
7.3.100.0060.00612.75
7.3.90.0050.00513.21
7.3.80.0070.00312.81
7.3.70.0030.00613.09
7.3.60.0070.00313.15
7.3.50.0040.00712.98
7.3.40.0070.00313.11
7.3.30.0100.00012.97
7.3.20.0030.00615.02
7.3.10.0070.00314.67
7.3.00.0030.00714.74
7.2.340.0110.00413.00
7.2.330.0120.01414.66
7.2.320.0120.01014.85
7.2.310.0210.01114.80
7.2.300.0120.01214.89
7.2.290.0110.01214.88
7.2.280.0150.00013.08
7.2.270.0140.00013.15
7.2.260.0140.00013.18
7.2.250.0100.00313.19
7.2.240.0090.00513.14
7.2.230.0110.00413.21
7.2.220.0130.00012.95
7.2.210.0100.00313.16
7.2.200.0080.00813.20
7.2.190.0070.00813.08
7.2.180.0040.00913.32
7.2.170.0140.00013.30
7.2.160.0100.00313.29
7.2.150.0080.00714.86
7.2.140.0140.00015.22
7.2.130.0140.00015.15
7.2.120.0050.01015.12
7.2.110.0080.00715.05
7.2.100.0140.00015.06
7.2.90.0110.00315.17
7.2.80.0080.00815.12
7.2.70.0150.00015.11
7.2.60.0120.00314.99
7.2.50.0150.00014.99
7.2.40.0120.00415.01
7.2.30.0100.00514.99
7.2.20.0070.00715.09
7.2.10.0120.00215.27
7.2.00.0060.01015.07
7.1.330.0050.01014.20
7.1.320.0110.00314.29
7.1.310.0090.00514.33
7.1.300.0110.00314.28
7.1.290.0070.00714.24
7.1.280.0110.00314.09
7.1.270.0100.00514.11
7.1.260.0070.00714.15
7.1.250.0150.00014.04
7.1.240.0130.00014.09
7.1.230.0130.00014.22
7.1.220.0120.00214.18
7.1.210.0150.00014.19
7.1.200.0090.00514.23
7.1.190.0040.00914.18
7.1.180.0070.00714.27
7.1.170.0140.00014.02
7.1.160.0060.00914.14
7.1.150.0150.00614.00
7.1.140.0090.00614.13
7.1.130.0140.00014.10
7.1.120.0130.00214.18
7.1.110.0150.00014.19
7.1.100.0080.00814.14
7.1.90.0110.00414.27
7.1.80.0000.01314.10
7.1.70.0120.00213.89
7.1.60.0140.00014.25
7.1.50.0140.00014.22
7.1.40.0120.00314.29
7.1.30.0070.00714.18
7.1.20.0140.00014.04
7.1.10.0140.00014.11
7.1.00.0080.00514.18
7.0.330.0050.01013.90
7.0.320.0130.00014.08
7.0.310.0090.00413.91
7.0.300.0120.00214.09
7.0.290.0110.00314.05
7.0.280.0110.00314.04
7.0.270.0050.00913.91
7.0.260.0130.00013.90
7.0.250.0100.01014.15
7.0.240.0140.00014.13
7.0.230.0090.00514.16
7.0.220.0070.00714.11
7.0.210.0150.00014.06
7.0.200.0130.00013.94
7.0.190.0100.00313.94
7.0.180.0140.00014.10
7.0.170.0110.00414.07
7.0.160.0080.00613.86
7.0.150.0150.00014.18
7.0.140.0150.00014.05
7.0.130.0090.00614.15
7.0.120.0110.00314.16
7.0.110.0120.00314.00
7.0.100.0120.00213.90
7.0.90.0100.00314.04
5.4.190.0130.06719.08
5.4.180.0170.04719.10
5.4.170.0130.06018.97
5.4.160.0200.05719.04
5.4.150.0100.06018.96
5.4.140.0130.05016.33
5.4.130.0070.05716.24
5.4.120.0130.06716.43
5.4.110.0170.05016.42
5.4.100.0130.05016.28
5.4.90.0170.05716.48
5.4.80.0100.05016.21
5.4.70.0200.07016.24
5.4.60.0170.05016.32
5.4.50.0170.05316.17
5.4.40.0130.07316.25
5.4.30.0200.04316.41
5.4.20.0170.05316.41
5.4.10.0170.06716.33
5.4.00.0100.06315.72
5.3.270.0100.05714.40
5.3.260.0130.05714.29
5.3.250.0200.05714.38
5.3.240.0170.04714.39
5.3.230.0130.07014.23
5.3.220.0170.07314.31
5.3.210.0230.06714.34
5.3.200.0200.04714.35
5.3.190.0170.07014.32
5.3.180.0100.06714.35
5.3.170.0170.04714.35
5.3.160.0200.04714.31
5.3.150.0200.06714.33
5.3.140.0130.05314.29
5.3.130.0130.05314.34
5.3.120.0170.08014.30
5.3.110.0230.07014.29
5.3.100.0070.06013.82
5.3.90.0270.06313.79
5.3.60.0100.05313.73
5.3.50.0200.05013.61
5.3.40.0130.07013.62
5.3.30.0100.05013.55
5.3.20.0200.06713.41
5.3.10.0200.04013.34
5.3.00.0200.04713.21

preferences:
42.2 ms | 401 KiB | 5 Q