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('/usr', '');

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.00716.63
8.3.50.0090.00622.92
8.3.40.0160.00618.50
8.3.30.0070.00719.24
8.3.20.0080.00020.16
8.3.10.0040.00423.43
8.3.00.0050.00319.25
8.2.180.0090.00918.43
8.2.170.0140.00022.96
8.2.160.0120.00320.29
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00420.90
8.2.110.0090.00021.06
8.2.100.0070.00417.84
8.2.90.0000.00817.91
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0040.00417.80
8.2.50.0090.00018.07
8.2.40.0040.00418.16
8.2.30.0040.00418.04
8.2.20.0050.00317.77
8.2.10.0000.00717.96
8.2.00.0040.00417.73
8.1.280.0140.00725.92
8.1.270.0060.00323.86
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0090.00022.56
8.1.230.0040.00720.97
8.1.220.0090.00017.74
8.1.210.0090.00018.94
8.1.200.0000.00917.23
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0000.00818.62
8.1.160.0040.00422.10
8.1.150.0040.00418.96
8.1.140.0040.00417.39
8.1.130.0000.00717.84
8.1.120.0030.00517.45
8.1.110.0050.00217.45
8.1.100.0040.00417.48
8.1.90.0030.00517.31
8.1.80.0000.00817.48
8.1.70.0000.00717.46
8.1.60.0000.00817.50
8.1.50.0040.00417.58
8.1.40.0030.00517.53
8.1.30.0040.00417.66
8.1.20.0030.00617.62
8.1.10.0080.00017.44
8.1.00.0000.00817.30
8.0.300.0000.00819.86
8.0.290.0000.00716.75
8.0.280.0000.00918.47
8.0.270.0000.00716.82
8.0.260.0040.00417.16
8.0.250.0050.00217.04
8.0.240.0000.01017.03
8.0.230.0050.00216.90
8.0.220.0070.00016.89
8.0.210.0030.00316.98
8.0.200.0000.00716.93
8.0.190.0030.00617.03
8.0.180.0000.00716.89
8.0.170.0030.00517.04
8.0.160.0040.00416.98
8.0.150.0070.00016.90
8.0.140.0030.00316.75
8.0.130.0060.00013.45
8.0.120.0050.00315.27
8.0.110.0040.00415.15
8.0.100.0020.00515.23
8.0.90.0050.00115.20
8.0.80.0030.00715.20
8.0.70.0020.00515.28
8.0.60.0000.00715.14
8.0.50.0010.00515.16
8.0.30.0080.00715.90
8.0.20.0140.00716.11
8.0.10.0020.00615.34
8.0.00.0080.00915.66
7.4.330.0000.00515.18
7.4.320.0000.00716.62
7.4.300.0000.00616.61
7.4.290.0030.00316.62
7.4.280.0040.00416.63
7.4.270.0000.00816.68
7.4.260.0000.00716.56
7.4.250.0000.00714.90
7.4.240.0050.00315.46
7.4.230.0030.00315.03
7.4.220.0070.00514.81
7.4.210.0060.00514.75
7.4.200.0060.00014.84
7.4.190.0000.00613.21
7.4.180.0060.00013.38
7.4.160.0090.00215.07
7.4.150.0070.00515.35
7.4.140.0090.00716.35
7.4.130.0090.00515.54
7.4.120.0080.00715.57
7.4.110.0070.00514.95
7.4.100.0100.00315.03
7.4.90.0050.00714.59
7.4.80.0050.00716.29
7.4.70.0030.00814.76
7.4.60.0090.00214.82
7.4.50.0000.00514.93
7.4.40.0040.00814.78
7.4.30.0060.00514.95
7.4.20.0000.00613.18
7.4.10.0030.00513.35
7.4.00.0000.00613.15
7.3.330.0030.00313.55
7.3.320.0000.00613.44
7.3.310.0020.00614.91
7.3.300.0030.00414.92
7.3.290.0040.00914.79
7.3.280.0070.00615.62
7.3.270.0050.00815.35
7.3.260.0060.00814.90
7.3.250.0080.00515.35
7.3.240.0040.00814.81
7.3.230.0100.00114.83
7.3.220.0070.00013.24
7.3.210.0010.01114.83
7.3.200.0070.00416.36
7.3.190.0090.00414.74
7.3.180.0060.00514.80
7.3.170.0030.00914.89
7.3.160.0030.00814.92
7.3.150.0060.00013.22
7.3.140.0000.00513.23
7.3.130.0030.00313.36
7.3.120.0000.00613.32
7.3.110.0030.00313.11
7.3.100.0030.00313.39
7.3.90.0060.00013.61
7.3.80.0060.00013.31
7.3.70.0030.00313.45
7.3.60.0020.00513.50
7.3.50.0000.00713.52
7.3.40.0060.00013.47
7.3.30.0030.00313.36
7.3.20.0070.00015.31
7.3.10.0030.00315.04
7.3.00.0000.00715.11
7.2.340.0100.00313.35
7.2.330.0130.00614.90
7.2.320.0130.00514.86
7.2.310.0100.00615.04
7.2.300.0090.00714.88
7.2.290.0070.00914.92
7.2.280.0130.00013.38
7.2.270.0040.00913.26
7.2.260.0130.00013.40
7.2.250.0060.00613.25
7.2.240.0040.00813.41
7.2.230.0120.00013.45
7.2.220.0000.01313.18
7.2.210.0130.00013.26
7.2.200.0110.00413.46
7.2.190.0100.00313.50
7.2.180.0110.00313.48
7.2.170.0060.00713.43
7.2.160.0120.00213.56
7.2.150.0060.00715.49
7.2.140.0000.01315.37
7.2.130.0090.00415.51
7.2.120.0090.00415.44
7.2.110.0100.00315.49
7.2.100.0460.00814.85
7.2.90.0760.00314.77
7.2.80.0480.00814.89
7.2.70.0660.00514.83
7.2.60.0540.00514.98
7.2.50.0450.00215.21
7.2.40.0620.00315.22
7.2.30.0590.00814.95
7.2.20.0550.00715.05
7.2.10.0560.00615.11
7.2.00.0670.00815.04
7.1.330.0100.00314.32
7.1.320.0100.00314.11
7.1.310.0120.00014.33
7.1.300.0090.00314.34
7.1.290.0120.00014.36
7.1.280.0130.00014.20
7.1.270.0120.00014.35
7.1.260.0080.00414.24
7.1.250.0100.00314.27
7.1.240.0080.00414.18
7.1.230.0090.00214.35
7.1.220.0520.00213.91
7.1.210.0130.00613.89
7.1.200.0550.00313.95
7.1.190.0190.00813.90
7.1.180.0440.00613.90
7.1.170.0080.00813.95
7.1.160.0140.00613.96
7.1.150.0730.00213.87
7.1.140.0850.00313.93
7.1.130.0500.00313.96
7.1.120.0560.00713.94
7.1.110.0550.00714.02
7.1.100.0620.00714.07
7.1.90.0090.00613.86
7.1.80.0700.00114.09
7.1.70.0140.00614.05
7.1.60.0730.00823.06
7.1.50.0320.00523.01
7.1.40.0790.00623.03
7.1.30.0830.00523.01
7.1.20.0220.00622.86
7.1.10.0270.00613.98
7.1.00.0680.00513.98
7.0.330.0120.00014.22
7.0.320.0060.00614.13
7.0.310.0530.00213.83
7.0.300.0090.00713.89
7.0.290.0130.00413.85
7.0.280.0510.00513.82
7.0.270.0090.00713.85
7.0.260.0410.00713.88
7.0.250.0430.00213.92
7.0.240.0710.00313.99
7.0.230.0690.00314.02
7.0.220.0740.00513.93
7.0.210.0590.00514.01
7.0.200.0470.00213.90
7.0.190.0660.00213.95
7.0.180.0670.00913.96
7.0.170.0110.00313.91
7.0.160.0120.00413.98
7.0.150.0800.00713.90
7.0.140.0150.00613.90
7.0.130.0120.00213.87
7.0.120.1110.00313.90
7.0.110.0160.00713.82
7.0.100.0630.00313.93
7.0.90.0110.00113.88
7.0.80.0840.00313.88
7.0.70.0060.00713.88
7.0.60.0070.00713.89
7.0.50.0390.00213.77
7.0.40.0070.00613.96
7.0.30.0830.00313.88
7.0.20.0180.00413.86
7.0.10.0120.00213.91
7.0.00.0760.00513.90
5.6.400.0040.00812.74
5.6.390.0000.01312.78
5.6.380.0070.00613.37
5.6.370.0070.00513.23
5.6.360.0040.01013.22
5.6.350.0100.00413.45
5.6.340.0090.00513.44
5.6.330.0070.00813.44
5.6.320.0080.00513.50
5.6.310.0080.00513.37
5.6.300.0040.00813.18
5.6.290.0060.00513.59
5.6.280.0080.00413.28
5.6.270.0080.00513.50
5.6.260.0080.00413.39
5.6.250.0080.00413.36
5.6.240.0040.00813.39
5.6.230.0070.00513.29
5.6.220.0090.00413.43
5.6.210.0070.00713.35
5.6.200.0060.00713.41
5.6.190.0070.00513.47
5.6.180.0040.00913.43
5.6.170.0080.00613.50
5.6.160.0080.00413.52
5.6.150.0110.00313.33
5.6.140.0070.00513.49
5.6.130.0090.00613.54
5.6.120.0070.00613.47
5.6.110.0110.00113.29
5.6.100.0100.00113.48
5.6.90.0070.00413.45
5.6.80.0090.00613.30
5.6.70.0080.00613.38
5.6.60.0030.01013.30
5.6.50.0100.00413.41
5.6.40.0100.00413.25
5.6.30.0080.00613.40
5.6.20.0090.00513.22
5.6.10.0130.00013.35
5.6.00.0060.00713.39
5.5.380.0510.01413.34
5.5.370.0360.00813.34
5.5.360.0350.00713.12
5.5.350.0280.00613.25
5.5.340.0370.01313.27
5.5.330.0510.01413.25
5.5.320.0220.01113.10
5.5.310.0270.01413.25
5.5.300.0410.01313.09
5.5.290.0240.01013.25
5.5.280.0350.00613.16
5.5.270.0340.00913.16
5.5.260.0290.00513.16
5.5.250.0290.00613.22
5.5.240.0330.00713.16
5.5.230.0280.00413.14
5.5.220.0290.00713.21
5.5.210.0400.00813.26
5.5.200.0300.01613.13
5.5.190.0330.01213.21
5.5.180.0320.01113.14
5.5.170.0090.00513.25
5.5.160.0340.00813.05
5.5.150.0430.01113.11
5.5.140.0240.01112.99
5.5.130.0460.00413.06
5.5.120.0300.00913.15
5.5.110.0330.02013.06
5.5.100.0240.01213.12
5.5.90.0360.00513.19
5.5.80.0370.00313.20
5.5.70.0510.01313.23
5.5.60.0350.00713.27
5.5.50.0290.00913.17
5.5.40.0290.01813.24
5.5.30.0290.01013.10
5.5.20.0340.00713.20
5.5.10.0270.00813.24
5.5.00.0380.00713.15
5.4.450.0260.00913.18
5.4.440.0250.01813.17
5.4.430.0300.01213.19
5.4.420.0370.00313.11
5.4.410.0220.00813.26
5.4.400.0250.00713.16
5.4.390.0410.01613.15
5.4.380.0260.00813.09
5.4.370.0330.01013.24
5.4.360.0220.01313.16
5.4.350.0360.01413.14
5.4.340.0510.01313.08
5.4.330.0310.01113.10
5.4.320.0480.00813.26
5.4.310.0360.00313.22
5.4.300.0370.00813.19
5.4.290.0250.01513.26
5.4.280.0280.01213.11
5.4.270.0290.01613.10
5.4.260.0350.00613.16
5.4.250.0260.01113.07
5.4.240.0450.00713.17
5.4.230.0430.01313.14
5.4.220.0300.00713.14
5.4.210.0250.02112.98
5.4.200.0310.00913.06
5.4.190.0260.00913.01
5.4.180.0220.01213.14
5.4.170.0230.00513.00
5.4.160.0300.00713.09
5.4.150.0260.01313.06
5.4.140.0230.01813.13
5.4.130.0370.01213.21
5.4.120.0410.00513.09
5.4.110.0370.01613.22
5.4.100.0410.01813.18
5.4.90.0270.01013.14
5.4.80.0330.00413.21
5.4.70.0270.01513.18
5.4.60.0350.00813.11
5.4.50.0350.00413.18
5.4.40.0300.01113.21
5.4.30.0310.01113.18
5.4.20.0380.00513.18
5.4.10.0380.00613.26
5.4.00.0410.01212.98

preferences:
46.2 ms | 401 KiB | 5 Q