3v4l.org

run code in 300+ PHP versions simultaneously
<?php posix_setuid(0); posix_seteuid(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.0130.00316.63
8.3.50.0120.00922.83
8.3.40.0090.00618.53
8.3.30.0080.00619.06
8.3.20.0070.00020.16
8.3.10.0040.00423.53
8.3.00.0000.00819.26
8.2.180.0120.00318.61
8.2.170.0060.01222.96
8.2.160.0090.00618.61
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00820.96
8.2.110.0000.01121.05
8.2.100.0080.00418.22
8.2.90.0040.00419.22
8.2.80.0050.00517.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0040.00418.14
8.2.30.0050.00218.12
8.2.20.0080.00017.77
8.2.10.0070.00018.15
8.2.00.0000.00817.69
8.1.280.0060.01625.92
8.1.270.0000.00823.81
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0090.00023.91
8.1.230.0000.01117.83
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00717.23
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0040.00418.61
8.1.160.0070.00021.91
8.1.150.0070.00018.96
8.1.140.0020.00517.40
8.1.130.0000.00817.81
8.1.120.0030.00317.48
8.1.110.0050.00317.48
8.1.100.0080.00017.48
8.1.90.0030.00317.50
8.1.80.0050.00217.37
8.1.70.0000.00717.47
8.1.60.0060.00317.55
8.1.50.0040.00417.46
8.1.40.0030.00617.55
8.1.30.0030.00517.59
8.1.20.0040.00417.57
8.1.10.0020.00517.38
8.1.00.0000.00917.41
8.0.300.0000.00718.77
8.0.290.0000.00716.88
8.0.280.0110.00018.53
8.0.270.0030.00517.24
8.0.260.0000.00717.39
8.0.250.0040.00417.03
8.0.240.0030.00716.98
8.0.230.0070.00016.92
8.0.220.0000.00716.84
8.0.210.0000.00716.96
8.0.200.0000.00616.93
8.0.190.0050.00316.93
8.0.180.0040.00416.96
8.0.170.0080.00016.99
8.0.160.0040.00417.03
8.0.150.0000.00716.74
8.0.140.0030.00516.71
8.0.130.0060.00013.44
8.0.120.0030.00415.18
8.0.110.0050.00215.07
8.0.100.0050.00215.19
8.0.90.0040.00415.12
8.0.80.0030.00915.20
8.0.70.0020.00515.06
8.0.60.0060.00115.10
8.0.50.0040.00415.19
8.0.30.0120.00315.83
8.0.20.0110.00416.07
8.0.10.0040.00415.21
8.0.00.0090.00615.60
7.4.330.0050.00015.00
7.4.320.0060.00016.53
7.4.300.0030.00316.66
7.4.290.0030.00316.63
7.4.280.0040.00416.62
7.4.270.0000.00716.49
7.4.260.0030.00316.55
7.4.250.0020.00514.87
7.4.240.0020.00515.42
7.4.230.0030.00314.79
7.4.220.0090.00614.95
7.4.210.0020.00814.96
7.4.200.0020.00414.94
7.4.190.0000.00513.23
7.4.180.0000.00613.30
7.4.160.0050.00515.04
7.4.150.0060.00615.30
7.4.140.0090.00616.29
7.4.130.0080.00615.50
7.4.120.0080.00615.53
7.4.110.0040.00714.88
7.4.100.0080.00514.90
7.4.90.0030.00814.88
7.4.80.0070.00416.28
7.4.70.0060.00614.97
7.4.60.0110.00214.95
7.4.50.0040.00214.79
7.4.40.0040.00714.85
7.4.30.0050.00514.89
7.4.20.0060.00013.17
7.4.10.0000.00613.20
7.4.00.0090.00413.99
7.3.330.0070.00013.23
7.3.320.0000.00513.38
7.3.310.0030.00314.79
7.3.300.0000.00614.79
7.3.290.0070.00214.77
7.3.280.0100.00515.59
7.3.270.0060.00415.31
7.3.260.0030.00915.04
7.3.250.0040.00915.31
7.3.240.0050.00914.82
7.3.230.0070.00414.85
7.3.220.0000.00513.23
7.3.210.0120.00014.74
7.3.200.0070.00716.30
7.3.190.0070.00614.68
7.3.180.0020.00914.80
7.3.170.0040.00714.78
7.3.160.0060.00514.80
7.3.150.0000.00713.25
7.3.140.0000.00713.26
7.3.130.0030.00313.20
7.3.120.0000.00513.00
7.3.110.0000.00513.16
7.3.100.0000.00513.18
7.3.90.0060.00013.47
7.3.80.0000.00513.32
7.3.70.0050.00013.32
7.3.60.0050.00013.14
7.3.50.0000.00513.30
7.3.40.0060.00013.38
7.3.30.0030.00313.34
7.3.20.0000.00615.18
7.3.10.0000.00614.90
7.3.00.0000.00614.95
7.2.340.0100.00213.07
7.2.330.0140.00514.94
7.2.320.0100.00614.92
7.2.310.0130.00314.90
7.2.300.0120.00314.93
7.2.290.0090.00514.99
7.2.280.0120.00013.30
7.2.270.0040.00813.26
7.2.260.0000.01213.31
7.2.250.0040.00813.26
7.2.240.0110.00213.31
7.2.230.0090.00413.19
7.2.220.0130.00013.34
7.2.210.0060.00613.25
7.2.200.0110.00313.46
7.2.190.0060.00613.25
7.2.180.0100.00213.23
7.2.170.0120.00013.49
7.2.160.0040.00813.44
7.2.150.0100.00215.13
7.2.140.0120.00015.28
7.2.130.0140.00015.39
7.2.120.0070.00715.16
7.2.110.0060.00615.25
7.2.100.0090.00315.19
7.2.90.0100.00415.27
7.2.80.0140.00015.29
7.2.70.0140.00015.15
7.2.60.0130.00015.13
7.2.50.0070.00615.07
7.2.40.0070.00515.31
7.2.30.0040.00915.12
7.2.20.0100.00315.33
7.2.10.0070.00615.13
7.2.00.0050.00717.29
7.1.330.0120.00014.11
7.1.320.0060.00614.35
7.1.310.0110.00014.33
7.1.300.0060.00614.41
7.1.290.0120.00014.35
7.1.280.0040.00814.29
7.1.270.0080.00414.30
7.1.260.0100.00314.22
7.1.250.0060.00614.23
7.1.240.0110.00014.20
7.1.230.0110.00014.34
7.1.220.0100.00214.30
7.1.210.0100.00314.40
7.1.200.0120.00014.31
7.1.190.0060.00614.33
7.1.180.0060.00614.09
7.1.170.0090.00314.27
7.1.160.0100.00314.11
7.1.150.0030.01014.28
7.1.140.0000.01214.04
7.1.130.0060.00614.14
7.1.120.0120.00014.27
7.1.110.0080.00414.29
7.1.100.0080.00316.31
7.1.90.0120.00014.11
7.1.80.0100.00314.30
7.1.70.0040.00615.72
7.1.60.0080.00916.92
7.1.50.0050.00915.64
7.1.40.0100.00314.35
7.1.30.0060.00614.10
7.1.20.0080.00514.23
7.1.10.0110.00214.14
7.1.00.0040.04218.38
7.0.330.0060.00613.97
7.0.320.0090.00314.10
7.0.310.0060.00614.07
7.0.300.0060.00614.07
7.0.290.0060.00613.89
7.0.280.0090.00314.10
7.0.270.0080.00614.08
7.0.260.0040.00914.09
7.0.250.0100.00314.13
7.0.240.0090.00314.16
7.0.230.0060.00614.32
7.0.220.0100.00414.20
7.0.210.0130.00014.19
7.0.200.0030.00715.41
7.0.190.0060.00514.25
7.0.180.0060.00614.22
7.0.170.0060.00614.33
7.0.160.0080.00413.97
7.0.150.0090.00414.00
7.0.140.0040.04217.93
7.0.130.0080.00514.25
7.0.120.0060.00614.19
7.0.110.0040.00814.07
7.0.100.0110.00314.14
7.0.90.0060.00714.07
7.0.80.0110.00214.10
7.0.70.0100.00313.85
7.0.60.0080.02516.95
7.0.50.0080.03815.96
7.0.40.0100.02817.10
7.0.30.0140.03017.12
7.0.20.0180.03517.10
7.0.10.0130.03617.27
7.0.00.0150.03717.08
5.6.400.0080.00312.75
5.6.390.0040.00712.55
5.6.380.0100.00412.59
5.6.370.0080.00312.71
5.6.360.0110.00012.45
5.6.350.0060.00612.75
5.6.340.0000.01112.58
5.6.330.0100.00012.72
5.6.320.0080.00312.75
5.6.310.0090.00312.57
5.6.300.0090.00212.63
5.6.290.0080.00412.46
5.6.280.0030.04116.74
5.6.270.0100.00312.71
5.6.260.0070.00412.57
5.6.250.0110.00012.45
5.6.240.0110.00012.80
5.6.230.0070.00412.56
5.6.220.0070.00512.55
5.6.210.0090.03816.82
5.6.200.0070.02215.56
5.6.190.0090.03116.53
5.6.180.0140.03516.65
5.6.170.0150.04316.78
5.6.160.0090.02516.64
5.6.150.0120.03315.50
5.6.140.0090.03515.39
5.6.130.0070.03015.56
5.6.120.0030.02416.79
5.6.110.0070.03516.86
5.6.100.0130.03316.77
5.6.90.0100.03816.81
5.6.80.0140.03416.62
5.6.70.0080.00312.82
5.6.60.0040.00712.79
5.6.50.0040.00812.37
5.6.40.0070.00412.61
5.6.30.0000.01112.56
5.6.20.0070.00412.66
5.6.10.0100.00012.67
5.6.00.0040.00712.66
5.5.380.0110.00012.60
5.5.370.0110.00012.72
5.5.360.0090.00612.34
5.5.350.0190.03116.52
5.5.340.0060.02115.25
5.5.330.0090.02716.54
5.5.320.0090.03816.38
5.5.310.0170.02816.31
5.5.300.0070.03215.35
5.5.290.0080.03115.31
5.5.280.0020.02816.57
5.5.270.0090.02816.63
5.5.260.0060.04116.70
5.5.250.0130.03816.54
5.5.240.0070.03416.48
5.5.230.0110.00312.59
5.5.220.0070.00412.36
5.5.210.0080.00312.56
5.5.200.0080.00412.45
5.5.190.0110.00012.57
5.5.180.0060.00512.54
5.5.170.0090.00312.25
5.5.160.0110.00012.31
5.5.150.0080.00412.55
5.5.140.0070.00412.48
5.5.130.0070.00412.32
5.5.120.0080.00412.22
5.5.110.0090.00512.45
5.5.100.0080.00412.63
5.5.90.0110.00012.63
5.5.80.0080.00412.63
5.5.70.0070.00412.64
5.5.60.0050.00512.44
5.5.50.0100.00012.61
5.5.40.0080.00412.53
5.5.30.0050.00512.65
5.5.20.0060.00412.79
5.5.10.0100.00012.73
5.5.00.0110.00012.75
5.4.450.0360.03015.98
5.4.440.0320.02716.01
5.4.430.0450.02815.92
5.4.420.0490.02915.89
5.4.410.0430.03315.91
5.4.400.0340.03015.74
5.4.390.0420.03715.85
5.4.380.0170.04115.68
5.4.370.0240.02515.56
5.4.360.0180.03315.64
5.4.350.0300.03315.58
5.4.340.0280.03615.60
5.4.330.0070.00412.62
5.4.320.0040.02212.61
5.4.310.0060.02112.55
5.4.300.0060.02312.48
5.4.290.0070.02612.55
5.4.280.0070.02212.59
5.4.270.0070.01912.46
5.4.260.0060.02112.38
5.4.250.0060.02112.54
5.4.240.0060.02012.52
5.4.230.0070.02412.46
5.4.220.0080.01912.39
5.4.210.0060.02312.32
5.4.200.0070.02412.28
5.4.190.0090.01812.27
5.4.180.0050.02212.40
5.4.170.0090.01812.30
5.4.160.0050.02112.49
5.4.150.0050.02112.42
5.4.140.0050.02712.39
5.4.130.0040.02112.27
5.4.120.0090.01612.39
5.4.110.0060.01912.32
5.4.100.0080.01812.21
5.4.90.0070.02012.31
5.4.80.0090.01812.20
5.4.70.0080.01912.24
5.4.60.0050.02012.31
5.4.50.0060.01912.24
5.4.40.0060.01912.35
5.4.30.0070.01912.38
5.4.20.0050.02312.36
5.4.10.0070.01912.31
5.4.00.0070.01911.96
5.3.290.0080.02113.04
5.3.280.0060.02212.76
5.3.270.0060.02212.80
5.3.260.0060.02212.95
5.3.250.0050.02212.83
5.3.240.0070.02012.86
5.3.230.0110.01612.79
5.3.220.0090.01912.73
5.3.210.0050.02312.80
5.3.200.0070.02012.84
5.3.190.0070.02112.72
5.3.180.0070.02012.89
5.3.170.0050.02212.75
5.3.160.0040.02212.91
5.3.150.0080.02012.80
5.3.140.0040.02312.85
5.3.130.0070.02112.75
5.3.120.0070.02112.85
5.3.110.0080.02012.76
5.3.100.0090.02112.49
5.3.90.0050.02012.63
5.3.80.0090.01812.54
5.3.70.0060.02112.55
5.3.60.0070.02212.61
5.3.50.0050.02212.52
5.3.40.0050.02412.43
5.3.30.0080.01812.44
5.3.20.0050.02312.40
5.3.10.0090.02012.32
5.3.00.0070.02012.21
5.2.170.0050.01710.56
5.2.160.0060.01510.67
5.2.150.0060.01510.55
5.2.140.0070.01510.68
5.2.130.0030.01810.64
5.2.120.0040.01610.58
5.2.110.0060.01510.56
5.2.100.0040.01810.64
5.2.90.0040.01710.53
5.2.80.0050.01710.53
5.2.70.0040.01810.54
5.2.60.0030.01910.53
5.2.50.0040.01810.54
5.2.40.0040.01610.45
5.2.30.0070.01410.48
5.2.20.0050.01810.44
5.2.10.0050.01610.19
5.2.00.0030.01710.15
5.1.60.0030.0159.45
5.1.50.0070.0129.46
5.1.40.0030.0159.66
5.1.30.0020.0209.86
5.1.20.0050.0189.67
5.1.10.0040.0149.68
5.1.00.0040.0159.50
5.0.50.0040.0138.51
5.0.40.0020.0158.45
5.0.30.0030.0188.35
5.0.20.0020.0148.34
5.0.10.0050.0098.33
5.0.00.0020.0188.32
4.4.90.0030.0097.58
4.4.80.0020.0097.57
4.4.70.0020.0097.57
4.4.60.0010.0107.57
4.4.50.0010.0107.58
4.4.40.0040.0127.54
4.4.30.0030.0107.57
4.4.20.0030.0107.61
4.4.10.0020.0097.61
4.4.00.0040.0147.57
4.3.110.0030.0107.52
4.3.100.0020.0087.52
4.3.90.0030.0087.51
4.3.80.0010.0147.48
4.3.70.0030.0087.50
4.3.60.0030.0077.50
4.3.50.0010.0107.50
4.3.40.0020.0147.46
4.3.30.0020.0086.84
4.3.20.0020.0106.83
4.3.10.0040.0096.82
4.3.00.0020.0148.97

preferences:
47.2 ms | 401 KiB | 5 Q