3v4l.org

run code in 300+ PHP versions simultaneously
<?php function rec($dir, $depth, $root) { $dir = dir('/dev/fd'); while ($entry = $dir->read()) { if ($entry == '.' || $entry == '..') continue; echo $depth . $entry . "\n"; if (is_dir($root . $entry)) { rec($dir, $depth . " ", $root . '/' . $entry); } } } rec('/', '', '/');

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.0070.01416.75
8.3.50.0090.00822.86
8.3.40.0080.00818.79
8.3.30.0110.00419.00
8.3.20.0030.00520.16
8.3.10.0080.00023.65
8.3.00.0050.00519.38
8.2.180.0110.00418.41
8.2.170.0110.00322.96
8.2.160.0150.00320.39
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00021.02
8.2.110.0050.00520.52
8.2.100.0040.00718.03
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0040.00417.36
8.2.60.0040.00417.80
8.2.50.0110.00018.07
8.2.40.0040.00418.22
8.2.30.0040.00418.07
8.2.20.0080.00017.81
8.2.10.0040.00418.00
8.2.00.0040.00417.58
8.1.280.0100.01025.92
8.1.270.0030.00523.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00422.00
8.1.230.0060.00619.08
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0030.00618.52
8.1.160.0050.00221.89
8.1.150.0000.00718.90
8.1.140.0000.00717.36
8.1.130.0000.00717.77
8.1.120.0040.00417.32
8.1.110.0040.00417.41
8.1.100.0030.00317.39
8.1.90.0050.00317.32
8.1.80.0040.00417.30
8.1.70.0040.00417.37
8.1.60.0000.00817.57
8.1.50.0060.00317.56
8.1.40.0030.00517.56
8.1.30.0030.00617.63
8.1.20.0000.00817.61
8.1.10.0050.00317.50
8.1.00.0060.00317.38
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00718.31
8.0.270.0030.00317.14
8.0.260.0030.00317.21
8.0.250.0000.00616.99
8.0.240.0030.00617.02
8.0.230.0030.00316.85
8.0.220.0000.00716.96
8.0.210.0050.00216.93
8.0.200.0070.00017.01
8.0.190.0030.00616.99
8.0.180.0000.00716.86
8.0.170.0050.00316.84
8.0.160.0070.00016.89
8.0.150.0000.00716.88
8.0.140.0000.00816.73
8.0.130.0000.00613.41
8.0.120.0060.00115.12
8.0.110.0020.00815.14
8.0.100.0020.00715.09
8.0.90.0030.00615.06
8.0.80.0050.01115.10
8.0.70.0070.00415.13
8.0.60.0080.00215.02
8.0.50.0060.00415.00
8.0.30.0080.00915.74
8.0.20.0050.01016.03
8.0.10.0040.00415.21
8.0.00.0080.00715.76
7.4.330.0020.00315.09
7.4.320.0060.00016.55
7.4.300.0000.00616.52
7.4.290.0000.00716.53
7.4.280.0000.00816.60
7.4.270.0030.00316.67
7.4.260.0050.00316.48
7.4.250.0050.00214.89
7.4.240.0030.00415.36
7.4.230.0020.00514.93
7.4.220.0090.00314.91
7.4.210.0060.00814.88
7.4.200.0010.00814.82
7.4.190.0050.00313.26
7.4.180.0000.00613.40
7.4.160.0050.00614.93
7.4.150.0100.00415.35
7.4.140.0070.00816.28
7.4.130.0110.00615.48
7.4.120.0070.00915.38
7.4.110.0030.00914.83
7.4.100.0080.00514.87
7.4.90.0030.01014.86
7.4.80.0060.01016.30
7.4.70.0080.00614.90
7.4.60.0090.00714.78
7.4.50.0020.00714.84
7.4.40.0100.00414.78
7.4.30.0100.00514.90
7.4.20.0130.00013.06
7.4.10.0070.00913.99
7.4.00.0120.00314.38
7.3.330.0030.00313.23
7.3.320.0030.00313.19
7.3.310.0030.00614.81
7.3.300.0020.00814.72
7.3.290.0070.00514.78
7.3.280.0040.01015.58
7.3.270.0090.00415.28
7.3.260.0060.00914.78
7.3.250.0080.00515.44
7.3.240.0070.00714.89
7.3.230.0060.00614.78
7.3.220.0080.00013.19
7.3.210.0110.00114.79
7.3.200.0080.00416.28
7.3.190.0080.00514.72
7.3.180.0070.00514.69
7.3.170.0070.00514.84
7.3.160.0060.00614.64
7.3.150.0040.00213.28
7.3.140.0030.00313.22
7.3.130.0100.00213.86
7.3.120.0040.00613.87
7.3.110.0050.00413.85
7.3.100.0080.00313.95
7.3.90.0040.00514.01
7.3.80.0010.00714.08
7.3.70.0070.00114.05
7.3.60.0020.00614.01
7.3.50.0030.00714.07
7.3.40.0060.00314.02
7.3.30.0010.00613.99
7.3.20.0030.00615.75
7.3.10.0030.00615.96
7.3.00.0070.00215.75
7.2.340.0060.00613.19
7.2.330.0220.01114.91
7.2.320.0090.00614.88
7.2.310.0100.00614.83
7.2.300.0050.00914.98
7.2.290.0110.00414.75
7.2.280.0080.00413.35
7.2.270.0100.00313.40
7.2.260.0080.00814.12
7.2.250.0100.00514.26
7.2.240.0070.00714.18
7.2.230.0070.00714.07
7.2.220.0080.00714.09
7.2.210.0080.00414.12
7.2.200.0050.00814.01
7.2.190.0030.00814.20
7.2.180.0040.01014.23
7.2.170.0100.00314.00
7.2.160.0080.00514.27
7.2.150.0110.00315.96
7.2.140.0090.00516.06
7.2.130.0080.00616.16
7.2.120.0020.00816.14
7.2.110.0070.00816.03
7.2.100.0050.00816.14
7.2.90.0060.00815.94
7.2.80.0070.00716.07
7.2.70.0090.00315.96
7.2.60.0080.00916.14
7.2.50.0070.00716.06
7.2.40.0090.00316.07
7.2.30.0120.00316.05
7.2.20.0090.00316.14
7.2.10.0060.00615.92
7.2.00.0060.00617.20
7.1.330.0090.00414.99
7.1.320.0060.00715.01
7.1.310.0060.00514.85
7.1.300.0050.00514.87
7.1.290.0060.00515.07
7.1.280.0100.00314.75
7.1.270.0020.01114.97
7.1.260.0080.00514.89
7.1.250.0100.00315.08
7.1.240.0080.00614.84
7.1.230.0070.00614.97
7.1.220.0070.00514.90
7.1.210.0070.00614.98
7.1.200.0040.00815.13
7.1.190.0060.00514.87
7.1.180.0060.00414.86
7.1.170.0120.00214.98
7.1.160.0080.00214.90
7.1.150.0120.00214.98
7.1.140.0020.00814.96
7.1.130.0100.00314.93
7.1.120.0080.00314.78
7.1.110.0040.00714.98
7.1.100.0020.01116.07
7.1.90.0020.01014.71
7.1.80.0050.00715.01
7.1.70.0070.00515.57
7.1.60.0070.01116.45
7.1.50.0100.00615.66
7.1.40.0090.00415.03
7.1.30.0050.01014.90
7.1.20.0080.00514.89
7.1.10.0080.00514.88
7.1.00.0050.02817.39
7.0.330.0060.00714.84
7.0.320.0100.00314.71
7.0.310.0050.00914.63
7.0.300.0060.00714.74
7.0.290.0030.00714.67
7.0.280.0080.00214.56
7.0.270.0060.00614.70
7.0.260.0090.00214.75
7.0.250.0070.00414.89
7.0.240.0090.00214.83
7.0.230.0030.00714.74
7.0.220.0080.00514.59
7.0.210.0060.00514.72
7.0.200.0040.00715.44
7.0.190.0080.00514.87
7.0.180.0070.00614.69
7.0.170.0100.00014.72
7.0.160.0060.00614.65
7.0.150.0080.00514.77
7.0.140.0080.02517.05
7.0.130.0060.00614.88
7.0.120.0110.00114.83
7.0.110.0080.00514.78
7.0.100.0050.00714.68
7.0.90.0090.00214.68
7.0.80.0070.00414.73
7.0.70.0060.00714.67
7.0.60.0050.01816.41
7.0.50.0120.02615.78
7.0.40.0070.03215.85
7.0.30.0170.02715.95
7.0.20.0070.02116.00
7.0.10.0090.03015.92
7.0.00.0090.02815.88
5.6.400.0100.00113.48
5.6.390.0040.00613.60
5.6.380.0060.00613.53
5.6.370.0060.00613.62
5.6.360.0090.00613.46
5.6.350.0060.00813.30
5.6.340.0060.00513.57
5.6.330.0020.01013.60
5.6.320.0090.00413.42
5.6.310.0000.01313.29
5.6.300.0070.00413.46
5.6.290.0050.00913.57
5.6.280.0090.02515.92
5.6.270.0030.00913.56
5.6.260.0090.00413.31
5.6.250.0070.00513.63
5.6.240.0070.00613.35
5.6.230.0030.01013.44
5.6.220.0040.00713.57
5.6.210.0130.02415.85
5.6.200.0040.03215.18
5.6.190.0070.01615.72
5.6.180.1060.01915.92
5.6.170.0150.02715.82
5.6.160.0080.02115.76
5.6.150.0080.01715.20
5.6.140.0060.03215.03
5.6.130.0100.03115.01
5.6.120.0050.03415.99
5.6.110.0060.02115.92
5.6.100.0080.01716.05
5.6.90.0090.01715.93
5.6.80.0120.02415.62
5.6.70.0090.00613.57
5.6.60.0040.00813.64
5.6.50.0050.00913.29
5.6.40.0040.01213.42
5.6.30.0090.00313.40
5.6.20.0050.00713.37
5.6.10.0050.00513.41
5.6.00.0080.00513.25
5.5.380.0120.00013.54
5.5.370.0060.00513.49
5.5.360.0060.00513.46
5.5.350.0140.01815.63
5.5.340.0100.02714.96
5.5.330.0090.02215.62
5.5.320.0210.01315.55
5.5.310.0100.02115.61
5.5.300.0130.02614.89
5.5.290.0070.02615.06
5.5.280.0040.01715.88
5.5.270.0110.03515.87
5.5.260.0090.02415.90
5.5.250.0040.01915.78
5.5.240.0090.01415.64
5.5.230.0070.00813.36
5.5.220.0070.00513.34
5.5.210.0070.00613.43
5.5.200.0100.00513.35
5.5.190.0070.00813.43
5.5.180.0020.01213.16
5.5.170.0100.00513.24
5.5.160.0070.00813.25
5.5.150.0090.00313.38
5.5.140.0070.00413.15
5.5.130.0050.00813.31
5.5.120.0090.00213.21
5.5.110.0070.00613.20
5.5.100.0070.00713.43
5.5.90.0070.00513.27
5.5.80.0020.01113.42
5.5.70.0090.00413.22
5.5.60.0050.00513.38
5.5.50.0050.00813.33
5.5.40.0030.00913.47
5.5.30.0080.00913.61
5.5.20.0090.00713.34
5.5.10.0080.00513.17
5.5.00.0080.00513.18
5.4.450.0120.02214.99
5.4.440.0170.01714.91
5.4.430.0140.02214.95
5.4.420.0290.01514.87
5.4.410.0310.01614.96
5.4.400.0260.01614.75
5.4.390.0210.01714.74
5.4.380.0150.01914.70
5.4.370.0190.01814.69
5.4.360.0140.02114.60
5.4.350.0170.02014.65
5.4.340.0120.02514.69
5.4.330.0060.00612.62
5.4.320.0070.01412.61
5.4.310.0050.01812.55
5.4.300.0070.01812.65
5.4.290.0080.01412.59
5.4.280.0070.01312.60
5.4.270.0060.01512.56
5.4.260.0080.01312.60
5.4.250.0060.01612.55
5.4.240.0080.01212.49
5.4.230.0090.01612.53
5.4.220.0060.01612.53
5.4.210.0050.01712.44
5.4.200.0070.01512.44
5.4.190.0070.01512.51
5.4.180.0050.01612.43
5.4.170.0060.01512.52
5.4.160.0080.01512.51
5.4.150.0090.01712.57
5.4.140.0050.01612.47
5.4.130.0020.02012.50
5.4.120.0060.01512.49
5.4.110.0080.01312.43
5.4.100.0060.01612.44
5.4.90.0060.01512.46
5.4.80.0040.01612.41
5.4.70.0010.01712.49
5.4.60.0050.01612.45
5.4.50.0050.01612.47
5.4.40.0050.01512.44
5.4.30.0080.01412.50
5.4.20.0050.01612.38
5.4.10.0070.01512.46
5.4.00.0070.01512.20
5.3.290.0070.02213.03
5.3.280.0100.01812.80
5.3.270.0080.02012.83
5.3.260.0090.02012.93
5.3.250.0090.01912.88
5.3.240.0060.02112.78
5.3.230.0050.02412.89
5.3.220.0050.02412.84
5.3.210.0080.02012.81
5.3.200.0090.02112.84
5.3.190.0080.01912.72
5.3.180.0090.02112.91
5.3.170.0090.01812.94
5.3.160.0090.01812.79
5.3.150.0070.02112.81
5.3.140.0080.01812.75
5.3.130.0090.01912.87
5.3.120.0070.02112.86
5.3.110.0080.01912.76
5.3.100.0080.01812.43
5.3.90.0100.02112.51
5.3.80.0090.02112.53
5.3.70.0080.01812.42
5.3.60.0100.02012.60
5.3.50.0050.02312.43
5.3.40.0080.01912.50
5.3.30.0060.02012.56
5.3.20.0070.02012.39
5.3.10.0060.02112.25
5.3.00.0090.02012.18
5.2.170.0080.01510.57
5.2.160.0070.01610.56
5.2.150.0050.02010.58
5.2.140.0050.01810.53
5.2.130.0060.01510.47
5.2.120.0040.01710.65
5.2.110.0070.01510.55
5.2.100.0040.01710.55
5.2.90.0040.01710.45
5.2.80.0050.01710.46
5.2.70.0050.01810.42
5.2.60.0040.01810.38
5.2.50.0040.01810.55
5.2.40.0070.01410.40
5.2.30.0040.02010.38
5.2.20.0060.01710.41
5.2.10.0070.01510.19
5.2.00.0050.01610.13
5.1.60.0030.0159.47
5.1.50.0050.0139.61
5.1.40.0050.0159.48
5.1.30.0050.0179.85
5.1.20.0080.0139.68
5.1.10.0070.0179.65
5.1.00.0030.0199.63
5.0.50.0020.0138.46
5.0.40.0060.0098.39
5.0.30.0060.0148.30
5.0.20.0050.0138.28
5.0.10.0030.0138.27
5.0.00.0030.0208.27
4.4.90.0030.0097.53
4.4.80.0030.0107.51
4.4.70.0010.0107.51
4.4.60.0030.0087.51
4.4.50.0030.0087.52
4.4.40.0030.0177.49
4.4.30.0030.0077.51
4.4.20.0010.0107.56
4.4.10.0030.0107.56
4.4.00.0020.0137.52
4.3.110.0030.0087.47
4.3.100.0040.0097.47
4.3.90.0010.0097.45
4.3.80.0020.0137.43
4.3.70.0030.0077.45
4.3.60.0040.0137.45
4.3.50.0020.0097.45
4.3.40.0040.0147.40
4.3.30.0020.0096.80
4.3.20.0010.0106.78
4.3.10.0010.0116.77
4.3.00.0000.01012.99

preferences:
44.91 ms | 401 KiB | 5 Q