3v4l.org

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

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.0000.01516.63
8.3.50.0100.01022.92
8.3.40.0100.00618.70
8.3.30.0100.00318.82
8.3.20.0040.00420.34
8.3.10.0070.00023.51
8.3.00.0080.00019.38
8.2.180.0150.00318.55
8.2.170.0110.00422.96
8.2.160.0000.02120.16
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00521.11
8.2.110.0070.00421.08
8.2.100.0060.00617.91
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0030.00717.80
8.2.50.0000.01018.07
8.2.40.0000.00818.03
8.2.30.0000.00718.14
8.2.20.0050.00217.71
8.2.10.0040.00417.96
8.2.00.0070.00017.74
8.1.280.0120.00625.92
8.1.270.0080.00023.88
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00722.54
8.1.230.0070.00417.70
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0070.00317.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0000.00818.62
8.1.160.0040.00422.04
8.1.150.0040.00418.79
8.1.140.0030.00517.51
8.1.130.0030.00317.80
8.1.120.0000.00717.52
8.1.110.0030.00517.52
8.1.100.0030.00517.53
8.1.90.0000.00717.47
8.1.80.0080.00017.52
8.1.70.0040.00417.51
8.1.60.0060.00317.50
8.1.50.0030.00617.55
8.1.40.0040.00417.49
8.1.30.0040.00417.63
8.1.20.0040.00417.57
8.1.10.0050.00217.45
8.1.00.0040.00417.32
8.0.300.0050.00218.77
8.0.290.0000.00816.75
8.0.280.0060.00318.46
8.0.270.0070.00017.28
8.0.260.0030.00317.28
8.0.250.0040.00417.04
8.0.240.0030.00717.09
8.0.230.0070.00017.00
8.0.220.0030.00317.02
8.0.210.0040.00416.98
8.0.200.0030.00317.04
8.0.190.0000.00817.09
8.0.180.0040.00316.87
8.0.170.0080.00017.00
8.0.160.0040.00417.04
8.0.150.0000.00716.89
8.0.140.0050.00316.75
8.0.130.0030.00313.39
8.0.120.0040.00315.12
8.0.110.0040.00415.14
8.0.100.0000.00715.22
8.0.90.0030.00415.07
8.0.80.0040.00815.19
8.0.70.0040.00415.18
8.0.60.0020.00615.18
8.0.50.0010.00615.19
8.0.30.0120.00415.91
8.0.20.0070.01016.10
8.0.10.0040.00415.24
8.0.00.0080.00915.72
7.4.330.0020.00215.11
7.4.320.0000.00616.49
7.4.300.0030.00316.54
7.4.290.0030.00316.67
7.4.280.0000.00716.65
7.4.270.0000.00716.57
7.4.260.0000.00816.53
7.4.250.0060.00214.88
7.4.240.0020.00515.54
7.4.230.0040.00314.96
7.4.220.0070.00514.68
7.4.210.0090.00414.74
7.4.200.0000.00714.71
7.4.190.0000.00613.19
7.4.180.0000.00513.37
7.4.160.0060.00614.98
7.4.150.0050.00615.31
7.4.140.0060.00916.31
7.4.130.0080.00815.41
7.4.120.0080.00615.42
7.4.110.0070.00514.97
7.4.100.0070.00714.99
7.4.90.0050.00814.65
7.4.80.0050.00716.19
7.4.70.0050.00614.80
7.4.60.0100.00214.88
7.4.50.0060.00214.84
7.4.40.0080.00314.86
7.4.30.0050.00714.83
7.4.20.0040.00413.16
7.4.10.0060.00614.11
7.4.00.0100.00614.56
7.3.330.0030.00313.15
7.3.320.0000.00513.18
7.3.310.0040.00414.82
7.3.300.0030.00414.88
7.3.290.0070.00314.91
7.3.280.0070.00815.60
7.3.270.0050.00815.31
7.3.260.0060.00814.82
7.3.250.0070.00715.50
7.3.240.0090.00514.99
7.3.230.0030.00914.87
7.3.220.0040.00413.23
7.3.210.0060.00714.69
7.3.200.0060.00916.35
7.3.190.0070.00714.72
7.3.180.0060.00914.92
7.3.170.0060.00814.77
7.3.160.0080.00614.80
7.3.150.0000.00813.16
7.3.140.0040.00213.20
7.3.130.0030.00813.95
7.3.120.0030.01014.18
7.3.110.0090.00514.22
7.3.100.0090.00514.45
7.3.90.0000.01014.37
7.3.80.0050.00614.34
7.3.70.0060.00514.19
7.3.60.0050.00614.31
7.3.50.0060.00614.29
7.3.40.0040.00714.34
7.3.30.0060.00514.27
7.3.20.0070.00516.11
7.3.10.0090.00316.25
7.3.00.0060.00616.20
7.2.340.0000.01212.99
7.2.330.0090.00614.98
7.2.320.0120.00214.72
7.2.310.0060.01114.87
7.2.300.0100.00514.81
7.2.290.0100.00814.94
7.2.280.0080.00413.25
7.2.270.0090.00413.23
7.2.260.0070.00914.29
7.2.250.0070.00914.53
7.2.240.0100.00614.40
7.2.230.0100.00614.35
7.2.220.0100.00314.31
7.2.210.0050.00814.43
7.2.200.0110.00414.48
7.2.190.0080.00514.42
7.2.180.0060.00814.44
7.2.170.0050.00514.43
7.2.160.0090.00514.11
7.2.150.0070.00916.01
7.2.140.0070.00716.00
7.2.130.0100.00316.25
7.2.120.0090.00416.27
7.2.110.0080.00416.31
7.2.100.0070.00716.28
7.2.90.0080.00716.36
7.2.80.0070.00816.39
7.2.70.0090.00716.12
7.2.60.0040.01016.35
7.2.50.0090.00616.37
7.2.40.0080.00716.46
7.2.30.0050.01016.39
7.2.20.0060.00816.30
7.2.10.0080.00416.44
7.2.00.0070.00817.17
7.1.330.0050.00815.25
7.1.320.0050.01015.31
7.1.310.0080.00415.28
7.1.300.0080.00715.18
7.1.290.0070.00515.25
7.1.280.0060.00515.21
7.1.270.0090.00515.30
7.1.260.0090.00515.21
7.1.250.0060.00615.38
7.1.240.0080.00515.22
7.1.230.0060.00515.28
7.1.220.0090.00415.30
7.1.210.0090.00415.25
7.1.200.0090.00415.08
7.1.190.0070.00315.17
7.1.180.0060.00615.15
7.1.170.0050.00915.25
7.1.160.0060.00615.33
7.1.150.0070.00415.35
7.1.140.0080.00515.17
7.1.130.0060.00715.26
7.1.120.0060.00815.19
7.1.110.0060.00615.23
7.1.100.0080.00515.94
7.1.90.0020.01015.24
7.1.80.0070.00415.23
7.1.70.0070.00515.70
7.1.60.0100.00516.33
7.1.50.0080.00715.67
7.1.40.0020.00915.28
7.1.30.0050.00815.08
7.1.20.0100.00515.23
7.1.10.0100.00315.22
7.1.00.0070.02717.08
7.0.330.0050.00615.00
7.0.320.0070.00414.81
7.0.310.0060.00514.76
7.0.300.0080.00514.78
7.0.290.0030.00914.94
7.0.280.0090.00314.88
7.0.270.0060.00814.93
7.0.260.0060.00614.76
7.0.250.0070.00414.95
7.0.240.0070.00615.05
7.0.230.0040.00814.96
7.0.220.0050.00914.98
7.0.210.0090.00314.96
7.0.200.0050.00615.47
7.0.190.0090.00314.95
7.0.180.0080.00615.06
7.0.170.0060.00715.00
7.0.160.0040.00614.90
7.0.150.0060.00514.94
7.0.140.0100.01816.62
7.0.130.0080.00315.01
7.0.120.0030.00814.94
7.0.110.0040.00914.93
7.0.100.0090.00314.91
7.0.90.0070.00414.96
7.0.80.0110.00114.90
7.0.70.0050.00614.89
7.0.60.0060.02516.12
7.0.50.0050.01615.71
7.0.40.0070.01915.34
7.0.30.0140.01915.33
7.0.20.0070.01815.23
7.0.10.0070.02115.29
7.0.00.0050.01815.22
5.6.400.0060.00713.30
5.6.390.0090.00313.59
5.6.380.0070.00313.69
5.6.370.0070.00613.69
5.6.360.0040.01213.67
5.6.350.0080.00513.69
5.6.340.0070.00613.67
5.6.330.0070.00713.56
5.6.320.0060.00513.83
5.6.310.0070.00613.75
5.6.300.0050.00813.71
5.6.290.0100.00413.89
5.6.280.0050.00713.68
5.6.270.0030.01013.86
5.6.260.0080.00613.79
5.6.250.0070.00613.68
5.6.240.0080.00313.72
5.6.230.0030.00913.81
5.6.220.0000.01213.85
5.6.210.0090.02415.52
5.6.200.0090.01814.92
5.6.190.0090.02515.48
5.6.180.1030.01715.47
5.6.170.0110.02415.46
5.6.160.0100.02115.46
5.6.150.0050.02514.93
5.6.140.0050.02114.90
5.6.130.0090.02114.88
5.6.120.0060.01515.62
5.6.110.0080.01415.63
5.6.100.0060.01715.47
5.6.90.0080.01615.51
5.6.80.0040.01615.32
5.6.70.0060.00413.60
5.6.60.0060.00713.57
5.6.50.0050.00613.60
5.6.40.0080.00213.72
5.6.30.0090.00213.51
5.6.20.0050.00713.65
5.6.10.0030.00913.69
5.6.00.0070.00613.63
5.5.380.0060.00612.60
5.5.370.0020.00812.80
5.5.360.0030.00712.56
5.5.350.0110.02314.44
5.5.340.0060.02414.08
5.5.330.0090.02014.49
5.5.320.0160.01814.64
5.5.310.0060.01614.45
5.5.300.0060.02513.75
5.5.290.0080.02113.92
5.5.280.0040.01914.52
5.5.270.0090.02314.66
5.5.260.0080.02014.74
5.5.250.0070.01314.60
5.5.240.0110.02214.56
5.5.230.0040.00612.73
5.5.220.0050.00612.54
5.5.210.0050.00812.57
5.5.200.0040.00812.45
5.5.190.0070.00512.66
5.5.180.0050.00712.44
5.5.170.0040.00512.49
5.5.160.0040.00712.36
5.5.150.0050.00612.59
5.5.140.0060.00612.31
5.5.130.0020.00812.43
5.5.120.0050.00712.43
5.5.110.0030.00712.53
5.5.100.0070.00612.70
5.5.90.0040.00612.52
5.5.80.0030.00712.54
5.5.70.0060.00712.66
5.5.60.0050.00812.49
5.5.50.0020.00812.53
5.5.40.0070.00512.44
5.5.30.0050.00512.39
5.5.20.0090.00212.51
5.5.10.0040.00412.50
5.5.00.0050.00512.43
5.4.450.0160.01513.99
5.4.440.0120.01413.83
5.4.430.0070.01513.90
5.4.420.0130.01313.82
5.4.410.0190.01713.87
5.4.400.0130.01013.66
5.4.390.0120.01513.76
5.4.380.0150.01913.58
5.4.370.0170.01413.58
5.4.360.0150.01613.67
5.4.350.0120.01913.76
5.4.340.0150.01413.57
5.4.330.0050.00612.02
5.4.320.0050.01212.02
5.4.310.0050.01512.16
5.4.300.0070.01212.16
5.4.290.0070.01712.19
5.4.280.0060.01412.00
5.4.270.0070.01212.02
5.4.260.0060.01312.02
5.4.250.0040.01612.10
5.4.240.0030.01612.03
5.4.230.0070.01511.94
5.4.220.0080.01212.08
5.4.210.0060.01412.09
5.4.200.0040.01312.10
5.4.190.0070.01112.09
5.4.180.0060.01412.08
5.4.170.0060.01511.96
5.4.160.0040.01412.00
5.4.150.0060.01212.06
5.4.140.0030.01612.00
5.4.130.0060.01212.02
5.4.120.0030.01511.85
5.4.110.0060.01211.92
5.4.100.0040.01412.05
5.4.90.0050.01212.03
5.4.80.0060.01212.00
5.4.70.0050.01212.01
5.4.60.0060.01111.96
5.4.50.0030.01712.00
5.4.40.0080.00912.01
5.4.30.0060.01212.03
5.4.20.0100.00811.99
5.4.10.0040.01512.08
5.4.00.0050.01411.80
5.3.290.0080.01612.05
5.3.280.0040.01812.06
5.3.270.0040.01812.09
5.3.260.0080.01512.17
5.3.250.0070.01512.10
5.3.240.0050.01611.94
5.3.230.0050.01711.95
5.3.220.0070.01511.89
5.3.210.0060.01812.02
5.3.200.0080.01411.96
5.3.190.0060.01512.03
5.3.180.0080.01412.09
5.3.170.0040.01712.08
5.3.160.0070.01312.01
5.3.150.0050.01612.11
5.3.140.0080.01412.04
5.3.130.0070.01411.98
5.3.120.0050.01612.11
5.3.110.0060.01812.10
5.3.100.0080.01511.92
5.3.90.0060.01511.92
5.3.80.0070.01211.82
5.3.70.0050.01511.80
5.3.60.0080.01311.83
5.3.50.0080.01211.81
5.3.40.0060.01511.81
5.3.30.0050.01711.80
5.3.20.0060.01511.76
5.3.10.0080.01211.56
5.3.00.0060.01511.59
5.2.170.0060.01210.44
5.2.160.0060.01210.47
5.2.150.0070.01110.46
5.2.140.0050.01310.42
5.2.130.0050.01410.42
5.2.120.0030.01410.44
5.2.110.0050.01310.48
5.2.100.0050.01110.51
5.2.90.0030.01510.45
5.2.80.0070.01010.46
5.2.70.0030.01410.38
5.2.60.0060.01210.42
5.2.50.0050.01210.45
5.2.40.0060.01110.46
5.2.30.0050.01210.38
5.2.20.0040.01410.31
5.2.10.0070.01010.23
5.2.00.0030.01610.19
5.1.60.0060.0109.74
5.1.50.0030.0129.73
5.1.40.0040.0119.75
5.1.30.0060.0109.91
5.1.20.0050.0169.95
5.1.10.0050.0129.77
5.1.00.0040.0129.82
5.0.50.0070.0089.06
5.0.40.0040.0089.01
5.0.30.0020.0148.95
5.0.20.0050.0078.94
5.0.10.0020.0108.93
5.0.00.0040.0128.93
4.4.90.0020.0088.43
4.4.80.0020.0088.43
4.4.70.0040.0078.43
4.4.60.0030.0088.43
4.4.50.0020.0088.43
4.4.40.0030.0108.41
4.4.30.0030.0078.43
4.4.20.0020.0088.46
4.4.10.0020.0088.46
4.4.00.0010.0118.43
4.3.110.0030.0068.40
4.3.100.0020.0078.40
4.3.90.0020.0088.39
4.3.80.0030.0098.37
4.3.70.0020.0078.39
4.3.60.0040.0058.38
4.3.50.0040.0058.38
4.3.40.0020.0108.36
4.3.30.0020.0077.95
4.3.20.0010.0087.94
4.3.10.0020.0077.93
4.3.00.0030.00712.08

preferences:
68.46 ms | 401 KiB | 5 Q