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

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.40.0040.01118.54
8.3.30.0110.00319.06
8.3.20.0070.00020.29
8.3.10.0040.00423.66
8.3.00.0040.00419.26
8.2.170.0070.00722.96
8.2.160.0090.00620.35
8.2.150.0030.00524.18
8.2.140.0020.00524.66
8.2.130.0040.00426.16
8.2.120.0000.00720.93
8.2.110.0030.00620.57
8.2.100.0080.00318.22
8.2.90.0040.00419.23
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0000.00918.05
8.2.50.0070.00418.07
8.2.40.0040.00418.22
8.2.30.0000.00817.95
8.2.20.0040.00417.66
8.2.10.0040.00418.01
8.2.00.0000.00717.72
8.1.270.0080.00023.69
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00721.86
8.1.230.0040.00718.95
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0000.01217.35
8.1.190.0080.00017.25
8.1.180.0040.00418.10
8.1.170.0050.00318.47
8.1.160.0040.00422.07
8.1.150.0000.00718.90
8.1.140.0040.00417.42
8.1.130.0000.00717.71
8.1.120.0030.00517.45
8.1.110.0000.00717.38
8.1.100.0000.00817.45
8.1.90.0000.00717.45
8.1.80.0000.00717.50
8.1.70.0050.00317.45
8.1.60.0050.00317.61
8.1.50.0070.00017.41
8.1.40.0050.00317.40
8.1.30.0000.00817.59
8.1.20.0030.00617.67
8.1.10.0050.00217.46
8.1.00.0030.00517.38
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.33
8.0.270.0000.00717.26
8.0.260.0040.00417.27
8.0.250.0030.00317.04
8.0.240.0000.01017.03
8.0.230.0000.00716.92
8.0.220.0000.00716.94
8.0.210.0030.00316.95
8.0.200.0060.00017.01
8.0.190.0050.00216.94
8.0.180.0030.00316.99
8.0.170.0020.00516.88
8.0.160.0030.00517.00
8.0.150.0040.00416.96
8.0.140.0040.00416.88
8.0.130.0030.00313.36
8.0.120.0040.00615.09
8.0.110.0070.00315.07
8.0.100.0020.00815.10
8.0.90.0050.00515.19
8.0.80.0100.00415.12
8.0.70.0090.00115.13
8.0.60.0040.00515.08
8.0.50.0080.00215.11
8.0.30.0070.00915.88
8.0.20.0080.00616.04
8.0.10.0080.00215.24
8.0.00.0060.01015.67
7.4.330.0060.00015.09
7.4.320.0000.00616.62
7.4.300.0030.00316.59
7.4.290.0030.00316.56
7.4.280.0040.00416.51
7.4.270.0030.00316.61
7.4.260.0040.00416.59
7.4.250.0040.00414.84
7.4.240.0040.00615.43
7.4.230.0050.00514.81
7.4.220.0090.00614.91
7.4.210.0080.00514.95
7.4.200.0050.00414.96
7.4.190.0070.00513.38
7.4.180.0000.00613.25
7.4.160.0060.00414.96
7.4.150.0080.00415.38
7.4.140.0110.00616.30
7.4.130.0090.00815.43
7.4.120.0090.00815.43
7.4.110.0080.00714.78
7.4.100.0120.00314.87
7.4.90.0060.00614.82
7.4.80.0090.00316.29
7.4.70.0020.01014.93
7.4.60.0100.00214.96
7.4.50.0020.00514.89
7.4.40.0050.00814.87
7.4.30.0100.00214.80
7.4.20.0060.00213.15
7.4.10.0030.00613.22
7.4.00.0020.00814.20
7.3.330.0000.00513.36
7.3.320.0060.00013.21
7.3.310.0020.00614.92
7.3.300.0050.00514.77
7.3.290.0050.00514.81
7.3.280.0080.00515.52
7.3.270.0070.00615.33
7.3.260.0040.00814.78
7.3.250.0080.00415.31
7.3.240.0090.00514.82
7.3.230.0040.00814.84
7.3.220.0050.00013.29
7.3.210.0050.00614.85
7.3.200.0070.00516.31
7.3.190.0060.00714.88
7.3.180.0070.00314.84
7.3.170.0050.00614.94
7.3.160.0050.00514.85
7.3.150.0060.00013.28
7.3.140.0030.00313.05
7.3.130.0000.00513.04
7.3.120.0030.00313.08
7.3.110.0040.00213.14
7.3.100.0000.00613.07
7.3.90.0070.00013.61
7.3.80.0030.00313.29
7.3.70.0000.00713.36
7.3.60.0070.00013.41
7.3.50.0070.00013.50
7.3.40.0050.00313.47
7.3.30.0040.00413.36
7.3.20.0000.00715.29
7.3.10.0030.00315.02
7.3.00.0000.00815.19
7.2.340.0130.00013.34
7.2.330.0100.00614.95
7.2.320.0100.00614.91
7.2.310.0160.00015.04
7.2.300.0140.00314.86
7.2.290.0110.00515.03
7.2.280.0050.00913.39
7.2.270.0110.00313.12
7.2.260.0100.00513.47
7.2.250.0120.00013.41
7.2.240.0100.00313.25
7.2.230.0090.00413.22
7.2.220.0100.00313.40
7.2.210.0080.00413.25
7.2.200.0110.00413.62
7.2.190.0120.00013.38
7.2.180.0130.00013.53
7.2.170.0120.00013.41
7.2.160.0080.00413.61
7.2.150.0100.00415.21
7.2.140.0100.00215.21
7.2.130.0040.00915.39
7.2.120.0080.00415.31
7.2.110.0080.00415.44
7.2.100.0090.00315.24
7.2.90.0090.00415.28
7.2.80.0100.00315.36
7.2.70.0090.00415.25
7.2.60.0090.00315.41
7.2.50.0070.00615.42
7.2.40.0060.00615.45
7.2.30.0080.00515.39
7.2.20.0070.00515.53
7.2.10.0110.00215.42
7.2.00.0100.00315.49
7.1.330.0120.00014.34
7.1.320.0060.00614.31
7.1.310.0110.00014.30
7.1.300.0060.00614.34
7.1.290.0080.00614.11
7.1.280.0060.00614.27
7.1.270.0120.00014.32
7.1.260.0070.00414.14
7.1.250.0000.01214.14
7.1.240.0000.01114.10
7.1.230.0000.01214.38
7.1.220.0090.00214.23
7.1.210.0120.00014.11
7.1.200.0060.00614.16
7.1.190.0090.00314.23
7.1.180.0060.00614.27
7.1.170.0120.00014.18
7.1.160.0080.00414.27
7.1.150.0120.00014.13
7.1.140.0000.01214.09
7.1.130.0100.00314.07
7.1.120.0100.00314.27
7.1.110.0100.00314.29
7.1.100.0080.00616.17
7.1.90.0100.00314.32
7.1.80.0120.00014.36
7.1.70.0080.00115.67
7.1.60.0070.00916.83
7.1.50.0030.01415.61
7.1.40.0090.00314.34
7.1.30.0080.00414.30
7.1.20.0100.00214.09
7.1.10.0070.00514.31
7.1.00.0060.04018.36
7.0.330.0120.00014.01
7.0.320.0070.00414.07
7.0.310.0060.00614.04
7.0.300.0120.00014.21
7.0.290.0090.00414.20
7.0.280.0120.00014.14
7.0.270.0120.00014.07
7.0.260.0120.00014.24
7.0.250.0130.00014.28
7.0.240.0120.00014.31
7.0.230.0090.00314.30
7.0.220.0060.00614.21
7.0.210.0120.00014.18
7.0.200.0050.00515.43
7.0.190.0090.00214.14
7.0.180.0000.01214.14
7.0.170.0100.00214.39
7.0.160.0080.00414.04
7.0.150.0130.00014.15
7.0.140.0050.04018.24
7.0.130.0040.00814.28
7.0.120.0100.00314.33
7.0.110.0060.00614.03
7.0.100.0120.00014.20
7.0.90.0130.00013.97
7.0.80.0070.00514.13
7.0.70.0100.00314.03
7.0.60.0100.04217.09
7.0.50.0080.03815.88
7.0.40.0100.03017.04
7.0.30.0130.02117.08
7.0.20.0180.02717.13
7.0.10.0080.02217.29
7.0.00.0070.02217.19
5.6.400.0120.00012.70
5.6.390.0120.00012.52
5.6.380.0080.00412.88
5.6.370.0080.00412.48
5.6.360.0070.00512.62
5.6.350.0090.00312.79
5.6.340.0110.00012.84
5.6.330.0040.00812.80
5.6.320.0100.00412.53
5.6.310.0130.00012.45
5.6.300.0080.00412.38
5.6.290.0090.00312.57
5.6.280.0080.03716.94
5.6.270.0080.00412.56
5.6.260.0120.00012.75
5.6.250.0100.00312.72
5.6.240.0040.00912.84
5.6.230.0000.01312.88
5.6.220.0110.00412.87
5.6.210.0050.02416.78
5.6.200.0080.04315.56
5.6.190.0080.03316.68
5.6.180.0230.03216.63
5.6.170.0140.02016.62
5.6.160.0080.02216.71
5.6.150.0070.02815.62
5.6.140.0070.03915.62
5.6.130.0070.02215.43
5.6.120.0100.03616.96
5.6.110.0090.04316.96
5.6.100.0080.04516.87
5.6.90.0070.04416.84
5.6.80.0040.02416.43
5.6.70.0120.00012.63
5.6.60.0120.00012.93
5.6.50.0060.00612.50
5.6.40.0080.00312.59
5.6.30.0080.00412.79
5.6.20.0070.00412.80
5.6.10.0100.00012.49
5.6.00.0110.00012.57
5.5.380.0070.00412.98
5.5.370.0120.00012.71
5.5.360.0060.00612.49
5.5.350.0080.04116.49
5.5.340.0060.02815.28
5.5.330.0080.04316.57
5.5.320.1330.02816.48
5.5.310.0100.02216.52
5.5.300.0100.01815.43
5.5.290.0040.02515.36
5.5.280.0090.02116.75
5.5.270.0110.02016.83
5.5.260.0070.04416.72
5.5.250.0090.04016.61
5.5.240.0060.04116.49
5.5.230.0090.00312.77
5.5.220.0110.00012.84
5.5.210.0110.00013.00
5.5.200.0110.00012.64
5.5.190.0030.00812.45
5.5.180.0120.00012.66
5.5.170.0080.00412.72
5.5.160.0070.00412.51
5.5.150.0100.00012.47
5.5.140.0040.00712.68
5.5.130.0040.00812.33
5.5.120.0110.00012.37
5.5.110.0060.00612.36
5.5.100.0000.01112.58
5.5.90.0110.00012.92
5.5.80.0110.00012.78
5.5.70.0120.00012.91
5.5.60.0110.00012.81
5.5.50.0050.00512.76
5.5.40.0070.00412.93
5.5.30.0070.00412.93
5.5.20.0110.00012.63
5.5.10.0050.00512.56
5.5.00.0100.00012.72
5.4.450.0400.02517.10
5.4.440.0390.01817.11
5.4.430.0290.02417.19
5.4.420.0290.02117.00
5.4.410.0320.02417.20
5.4.400.0250.02616.98
5.4.390.0370.02417.09
5.4.380.0490.02017.08
5.4.370.0220.02417.07
5.4.360.0310.02117.00
5.4.350.0210.04717.13
5.4.340.0220.02116.97
5.4.330.0110.00012.87
5.4.320.0150.02117.13
5.4.310.0220.02017.26
5.4.300.0390.02117.22
5.4.290.0390.01817.22
5.4.280.0460.02117.17
5.4.270.0290.02417.26
5.4.260.0250.03017.14
5.4.250.0390.01917.19
5.4.240.0430.01817.23
5.4.230.0190.01917.06
5.4.220.0510.02016.95
5.4.210.0120.02517.08
5.4.200.0460.01517.05
5.4.190.0220.02617.00
5.4.180.0490.01517.14
5.4.170.0320.02217.08
5.4.160.0440.02617.08
5.4.150.0410.03317.09
5.4.140.0410.02517.23
5.4.130.0160.01817.05
5.4.120.0510.01517.22
5.4.110.0340.03017.15
5.4.100.0290.01817.15
5.4.90.0330.02217.19
5.4.80.0280.02117.10
5.4.70.0430.01817.11
5.4.60.0280.03417.06
5.4.50.0060.01617.18
5.4.40.0470.03217.21
5.4.30.0220.01817.21
5.4.20.0250.02317.06
5.4.10.0370.02217.18
5.4.00.0330.01917.00
5.3.290.0340.02417.31
5.3.280.0300.02717.30
5.3.270.0490.02217.28
5.3.260.0450.02117.42
5.3.250.0440.01517.41
5.3.240.0200.03017.24
5.3.230.0460.01817.35
5.3.220.0310.01917.19
5.3.210.0330.02117.29
5.3.200.0440.02017.19
5.3.190.0240.02217.21
5.3.180.0190.02517.38
5.3.170.0470.02217.30
5.3.160.0390.02017.33
5.3.150.0260.02417.38
5.3.140.0460.01617.23
5.3.130.0390.02217.38
5.3.120.0370.01817.22
5.3.110.0260.02217.24
5.3.100.0380.01817.25
5.3.90.0390.01617.33
5.3.80.0190.01917.22
5.3.70.0160.03117.23
5.3.60.0350.01617.39
5.3.50.0220.02017.22
5.3.40.0280.02417.33
5.3.30.0200.02217.30
5.3.20.0240.02317.36
5.3.10.0260.02117.17
5.3.00.0230.02417.25
5.2.170.0230.02116.74
5.2.160.0260.01816.88
5.2.150.0330.01516.85
5.2.140.0240.02216.82
5.2.130.0240.02016.72
5.2.120.0390.01416.73
5.2.110.0160.01716.86
5.2.100.0270.01816.85
5.2.90.0400.01216.82
5.2.80.0270.02016.78
5.2.70.0330.01816.66
5.2.60.0230.01816.75
5.2.50.0240.01816.66
5.2.40.0270.01616.82
5.2.30.0420.01416.78
5.2.20.0150.01916.66
5.2.10.0130.01516.68
5.2.00.0210.01716.65
5.1.60.0350.01116.24
5.1.50.0280.01416.23
5.1.40.0120.01916.16
5.1.30.0290.01016.30
5.1.20.0120.01716.26
5.1.10.0130.01516.29
5.1.00.0200.01016.09
5.0.50.0120.01215.86
5.0.40.0170.00815.86
5.0.30.0100.01815.86
5.0.20.0110.01015.86
5.0.10.0270.01015.86
5.0.00.0130.01515.86
4.4.90.0120.00716.00
4.4.80.0020.01016.00
4.4.70.0120.00816.00
4.4.60.0070.01216.00
4.4.50.0100.00716.00
4.4.40.0020.01216.00
4.4.30.0020.01215.86
4.4.20.0020.01215.86
4.4.10.0170.00915.86
4.4.00.0070.01215.86
4.3.110.0080.00715.86
4.3.100.0130.01215.86
4.3.90.0110.01015.86
4.3.80.0120.01215.86
4.3.70.0030.01015.86
4.3.60.0190.00815.86
4.3.50.0050.00715.86
4.3.40.0160.01315.86
4.3.30.0030.00815.86
4.3.20.0050.02315.86
4.3.10.0020.01015.86
4.3.00.0030.01215.86

preferences:
51.05 ms | 400 KiB | 5 Q