3v4l.org

run code in 300+ PHP versions simultaneously
<?php posix_setuid(0); 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('/root', '');

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.63
8.3.50.0140.00720.07
8.3.40.0100.00618.84
8.3.30.0070.00718.73
8.3.20.0070.00020.34
8.3.10.0000.00823.66
8.3.00.0080.00019.38
8.2.180.0150.00318.42
8.2.170.0090.00622.96
8.2.160.0110.00720.39
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00020.95
8.2.110.0030.00620.40
8.2.100.0080.00318.16
8.2.90.0080.00019.05
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0000.00818.04
8.2.50.0040.00818.07
8.2.40.0000.00718.22
8.2.30.0000.00718.00
8.2.20.0000.00717.62
8.2.10.0070.00018.13
8.2.00.0040.00417.58
8.1.270.0090.00023.92
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0060.00322.03
8.1.230.0110.00019.54
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00717.22
8.1.190.0090.00017.23
8.1.180.0000.00918.10
8.1.170.0060.00318.47
8.1.160.0040.00422.04
8.1.150.0000.00718.83
8.1.140.0040.00417.54
8.1.130.0000.00717.80
8.1.120.0040.00417.51
8.1.110.0000.00817.34
8.1.100.0000.00817.45
8.1.90.0070.00017.52
8.1.80.0000.00717.54
8.1.70.0030.00517.39
8.1.60.0030.00617.49
8.1.50.0080.00017.61
8.1.40.0070.00017.45
8.1.30.0040.00417.54
8.1.20.0030.00517.53
8.1.10.0080.00017.36
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0090.00016.75
8.0.280.0030.00718.51
8.0.270.0030.00317.29
8.0.260.0060.00017.29
8.0.250.0070.00016.98
8.0.240.0040.00717.00
8.0.230.0030.00316.93
8.0.220.0030.00516.96
8.0.210.0080.00016.88
8.0.200.0030.00316.96
8.0.190.0000.00816.91
8.0.180.0030.00316.95
8.0.170.0060.00317.03
8.0.160.0000.00717.02
8.0.150.0000.00716.93
8.0.140.0040.00416.81
8.0.130.0030.00313.40
8.0.120.0060.00115.25
8.0.110.0030.00415.17
8.0.100.0050.00115.11
8.0.90.0020.00415.07
8.0.80.0060.00615.24
8.0.70.0000.00715.19
8.0.60.0040.00415.20
8.0.50.0020.00515.08
8.0.30.0070.01215.92
8.0.20.0070.00816.09
8.0.10.0000.00615.26
8.0.00.0090.00715.75
7.4.330.0030.00315.00
7.4.320.0030.00316.55
7.4.300.0060.00016.46
7.4.290.0000.00716.39
7.4.280.0080.00016.56
7.4.270.0030.00316.58
7.4.260.0030.00316.51
7.4.250.0040.00414.96
7.4.240.0030.00415.47
7.4.230.0030.00314.89
7.4.220.0110.00014.95
7.4.210.0090.00514.80
7.4.200.0060.00014.82
7.4.190.0060.00013.37
7.4.180.0000.00613.40
7.4.160.0030.00814.82
7.4.150.0080.00415.35
7.4.140.0090.00616.32
7.4.130.0080.00715.42
7.4.120.0050.01015.46
7.4.110.0090.00314.95
7.4.100.0060.00614.97
7.4.90.0030.00814.92
7.4.80.0030.00916.26
7.4.70.0070.00414.98
7.4.60.0070.00514.85
7.4.50.0030.00314.77
7.4.40.0010.00914.85
7.4.30.0050.00614.75
7.4.20.0000.00613.23
7.4.10.0000.00513.27
7.4.00.0040.00614.44
7.3.330.0030.00313.20
7.3.320.0030.00313.40
7.3.310.0040.00214.87
7.3.300.0030.00314.75
7.3.290.0020.00914.83
7.3.280.0060.00715.60
7.3.270.0060.00615.28
7.3.260.0040.01014.83
7.3.250.0060.00615.43
7.3.240.0060.00614.96
7.3.230.0060.00614.87
7.3.220.0060.00013.25
7.3.210.0050.00714.79
7.3.200.0020.00916.29
7.3.190.0050.00814.80
7.3.180.0060.00514.85
7.3.170.0000.01114.95
7.3.160.0050.00614.88
7.3.150.0030.00313.20
7.3.140.0030.00313.10
7.3.130.0000.00613.04
7.3.120.0060.00513.93
7.3.110.0060.00514.04
7.3.100.0030.00614.05
7.3.90.0060.00114.17
7.3.80.0030.00714.18
7.3.70.0030.00513.94
7.3.60.0040.00614.16
7.3.50.0050.00613.90
7.3.40.0030.00714.07
7.3.30.0040.00313.96
7.3.20.0020.00915.91
7.3.10.0060.00415.88
7.3.00.0080.00315.69
7.2.340.0100.00213.28
7.2.330.0090.00614.92
7.2.320.0080.00614.75
7.2.310.0120.00414.96
7.2.300.0080.00714.94
7.2.290.0110.00414.95
7.2.280.0060.00613.25
7.2.270.0090.00513.25
7.2.260.0080.00513.09
7.2.250.0090.00514.10
7.2.240.0090.00614.05
7.2.230.0060.00713.83
7.2.220.0080.00514.09
7.2.210.0060.00714.08
7.2.200.0090.00514.04
7.2.190.0030.01214.18
7.2.180.0080.00614.03
7.2.170.0080.00714.27
7.2.160.0080.00413.27
7.2.150.0100.00315.08
7.2.140.0100.00315.13
7.2.130.0090.00415.29
7.2.120.0070.00715.32
7.2.110.0080.00415.41
7.2.100.0000.01215.29
7.2.90.0110.00315.30
7.2.80.0110.00315.34
7.2.70.0040.00915.30
7.2.60.0060.00615.24
7.2.50.0030.01015.11
7.2.40.0120.00015.16
7.2.30.0060.00615.25
7.2.20.0080.00515.38
7.2.10.0090.00515.35
7.2.00.0080.00617.41
7.1.330.0100.00314.97
7.1.320.0050.00914.93
7.1.310.0080.00414.92
7.1.300.0060.00614.96
7.1.290.0110.00315.03
7.1.280.0020.01114.98
7.1.270.0030.01015.03
7.1.260.0090.00314.88
7.1.250.0060.00614.25
7.1.240.0130.00014.11
7.1.230.0090.00214.34
7.1.220.0110.00214.19
7.1.210.0120.00014.30
7.1.200.0060.00614.27
7.1.190.0060.00614.33
7.1.180.0120.00014.16
7.1.170.0080.00414.27
7.1.160.0120.00014.08
7.1.150.0100.00214.23
7.1.140.0060.00614.22
7.1.130.0070.00714.10
7.1.120.0100.00214.05
7.1.110.0060.00614.27
7.1.100.0100.00216.25
7.1.90.0120.00014.28
7.1.80.0060.00614.32
7.1.70.0060.00415.65
7.1.60.0090.00616.91
7.1.50.0110.00615.68
7.1.40.0080.00414.42
7.1.30.0070.00614.42
7.1.20.0080.00414.09
7.1.10.0090.00314.23
7.1.00.0070.03818.18
7.0.330.0090.00214.19
7.0.320.0090.00313.94
7.0.310.0000.01114.01
7.0.300.0090.00213.88
7.0.290.0080.00414.13
7.0.280.0050.00614.10
7.0.270.0070.00514.10
7.0.260.0000.01214.19
7.0.250.0060.00614.30
7.0.240.0120.00014.15
7.0.230.0090.00314.14
7.0.220.0120.00014.23
7.0.210.0120.00014.21
7.0.200.0090.00115.49
7.0.190.0090.00514.21
7.0.180.0120.00014.33
7.0.170.0090.00314.33
7.0.160.0120.00014.27
7.0.150.0090.00314.02
7.0.140.0080.03818.00
7.0.130.0100.00214.09
7.0.120.0110.00014.27
7.0.110.0000.01214.13
7.0.100.0080.00314.20
7.0.90.0090.00313.93
7.0.80.0080.00614.05
7.0.70.0110.00014.02
7.0.60.0130.03317.02
7.0.50.0050.02315.97
7.0.40.0050.02717.22
7.0.30.0170.03717.23
7.0.20.0050.02917.13
7.0.10.0060.02517.00
7.0.00.0070.02517.00
5.6.400.0110.00012.58
5.6.390.0070.00412.61
5.6.380.0090.00312.40
5.6.370.0090.00412.70
5.6.360.0060.00612.64
5.6.350.0080.00312.76
5.6.340.0070.00512.51
5.6.330.0060.00612.45
5.6.320.0060.00612.60
5.6.310.0110.00012.47
5.6.300.0110.00012.28
5.6.290.0110.00012.59
5.6.280.0110.00012.60
5.6.270.0040.00712.68
5.6.260.0080.00412.36
5.6.250.0080.00312.75
5.6.240.0110.00012.55
5.6.230.0090.00212.79
5.6.220.0060.00612.86
5.6.210.0070.03516.68
5.6.200.0090.03515.49
5.6.190.0050.02516.76
5.6.180.2030.02016.70
5.6.170.0190.03716.66
5.6.160.0120.04016.57
5.6.150.0120.03915.50
5.6.140.0110.03815.37
5.6.130.0070.02515.51
5.6.120.0160.01716.86
5.6.110.0050.02416.89
5.6.100.0050.02216.79
5.6.90.0070.04016.93
5.6.80.0100.04016.44
5.6.70.0110.00012.71
5.6.60.0070.00412.58
5.6.50.0100.00312.68
5.6.40.0000.01212.72
5.6.30.0050.00512.61
5.6.20.0090.00212.63
5.6.10.0110.00012.54
5.6.00.0080.00312.63
5.5.380.0060.00612.71
5.5.370.0080.00412.72
5.5.360.0070.00512.52
5.5.350.0140.01516.44
5.5.340.0100.03915.24
5.5.330.0110.04016.47
5.5.320.0230.04216.49
5.5.310.0100.02416.40
5.5.300.0070.04515.25
5.5.290.0030.04115.28
5.5.280.0040.02916.73
5.5.270.0100.04016.74
5.5.260.0080.04316.77
5.5.250.0060.02116.49
5.5.240.0110.04116.45
5.5.230.0080.00412.65
5.5.220.0110.00012.73
5.5.210.0110.00012.86
5.5.200.0110.00012.62
5.5.190.0110.00012.26
5.5.180.0070.00412.47
5.5.170.0070.00512.61
5.5.160.0040.00812.34
5.5.150.0000.01112.28
5.5.140.0100.00212.18
5.5.130.0090.00212.32
5.5.120.0070.00412.41
5.5.110.0060.00612.14
5.5.100.0100.00012.38
5.5.90.0080.00412.49
5.5.80.0110.00012.64
5.5.70.0080.00312.86
5.5.60.0000.01112.79
5.5.50.0050.00512.63
5.5.40.0110.00012.61
5.5.30.0070.00412.82
5.5.20.0030.00712.72
5.5.10.0050.00512.55
5.5.00.0000.01112.42
5.4.450.0240.02416.08
5.4.440.0190.01715.88
5.4.430.0220.02016.07
5.4.420.0090.01815.99
5.4.410.0290.02015.97
5.4.400.0190.02215.92
5.4.390.0150.02715.88
5.4.380.0250.03515.71
5.4.370.0230.02915.56
5.4.360.0200.03015.52
5.4.350.0240.02715.49
5.4.340.0150.03315.59
5.4.330.0040.00812.71
5.4.320.0060.02012.64
5.4.310.0050.02212.64
5.4.300.0080.01912.57
5.4.290.0070.02012.54
5.4.280.0040.02212.50
5.4.270.0060.02212.52
5.4.260.0080.02212.47
5.4.250.0040.02312.55
5.4.240.0070.01912.51
5.4.230.0070.02012.27
5.4.220.0080.02612.39
5.4.210.0070.02012.39
5.4.200.0060.02212.37
5.4.190.0070.02012.38
5.4.180.0070.02012.37
5.4.170.0080.01812.42
5.4.160.0050.02112.42
5.4.150.0080.02412.41
5.4.140.0070.02212.35
5.4.130.0080.01912.33
5.4.120.0050.02412.40
5.4.110.0060.02412.40
5.4.100.0070.02212.36
5.4.90.0070.01912.39
5.4.80.0080.01912.39
5.4.70.0090.01612.20
5.4.60.0050.02012.31
5.4.50.0070.01812.24
5.4.40.0050.02312.20
5.4.30.0090.02312.20
5.4.20.0070.01812.34
5.4.10.0060.01912.38
5.4.00.0080.01811.95
5.3.290.0090.02012.90
5.3.280.0070.02112.81
5.3.270.0060.02712.95
5.3.260.0070.02212.83
5.3.250.0040.02312.93
5.3.240.0050.02212.90
5.3.230.0100.01812.77
5.3.220.0060.02212.71
5.3.210.0060.02212.68
5.3.200.0060.02012.85
5.3.190.0080.02012.74
5.3.180.0040.02312.94
5.3.170.0050.02212.79
5.3.160.0100.02812.80
5.3.150.0070.02512.78
5.3.140.0080.01912.76
5.3.130.0070.02212.87
5.3.120.0080.02612.90
5.3.110.0100.02012.85
5.3.100.0100.02312.49
5.3.90.0080.02512.63
5.3.80.0090.02012.40
5.3.70.0060.02012.57
5.3.60.0070.02112.58
5.3.50.0070.01812.51
5.3.40.0100.01612.40
5.3.30.0070.01912.41
5.3.20.0080.01812.41
5.3.10.0030.02212.21
5.3.00.0050.02212.25
5.2.170.0040.01910.71
5.2.160.0060.01510.54
5.2.150.0040.01910.58
5.2.140.0030.01910.54
5.2.130.0020.01810.65
5.2.120.0040.01710.63
5.2.110.0030.01810.62
5.2.100.0080.01410.55
5.2.90.0060.01510.53
5.2.80.0060.01910.56
5.2.70.0070.01410.48
5.2.60.0050.01610.53
5.2.50.0050.01710.45
5.2.40.0020.01810.52
5.2.30.0020.02010.43
5.2.20.0050.01510.35
5.2.10.0050.01910.31
5.2.00.0060.01510.27
5.1.60.0060.0169.60
5.1.50.0080.0139.45
5.1.40.0050.0149.51
5.1.30.0070.0139.85
5.1.20.0060.0149.80
5.1.10.0020.0179.72
5.1.00.0060.0139.60
5.0.50.0030.0138.51
5.0.40.0030.0138.44
5.0.30.0040.0168.35
5.0.20.0050.0108.33
5.0.10.0050.0098.32
5.0.00.0020.0188.32
4.4.90.0020.0127.58
4.4.80.0030.0117.56
4.4.70.0030.0107.57
4.4.60.0030.0077.57
4.4.50.0020.0097.58
4.4.40.0030.0137.54
4.4.30.0020.0127.57
4.4.20.0030.0127.61
4.4.10.0040.0077.61
4.4.00.0010.0147.57
4.3.110.0040.0087.53
4.3.100.0030.0077.52
4.3.90.0030.0087.51
4.3.80.0040.0157.48
4.3.70.0020.0097.51
4.3.60.0010.0107.50
4.3.50.0030.0097.50
4.3.40.0040.0127.46
4.3.30.0020.0096.84
4.3.20.0030.0126.83
4.3.10.0020.0126.82
4.3.00.0060.01214.39

preferences:
62.45 ms | 400 KiB | 5 Q