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.0150.00618.88
8.3.30.0040.01119.09
8.3.20.0050.00320.21
8.3.10.0080.00023.52
8.3.00.0080.00019.25
8.2.170.0150.00022.96
8.2.160.0120.00320.25
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0140.00026.16
8.2.120.0040.00421.16
8.2.110.0090.00021.00
8.2.100.0040.00717.97
8.2.90.0080.00019.27
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0030.00517.93
8.2.50.0000.00818.10
8.2.40.0040.00817.78
8.2.30.0000.00818.12
8.2.20.0040.00417.57
8.2.10.0060.00318.05
8.2.00.0040.00417.80
8.1.270.0040.00423.96
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0000.00923.97
8.1.230.0090.00317.82
8.1.220.0060.00317.77
8.1.210.0030.00618.77
8.1.200.0030.00617.38
8.1.190.0040.00417.13
8.1.180.0000.00918.10
8.1.170.0000.00818.65
8.1.160.0030.00521.98
8.1.150.0000.00818.92
8.1.140.0050.00217.45
8.1.130.0000.00817.94
8.1.120.0040.00417.51
8.1.110.0080.00017.48
8.1.100.0030.00517.50
8.1.90.0020.00517.47
8.1.80.0000.00717.36
8.1.70.0030.00317.48
8.1.60.0050.00317.53
8.1.50.0040.00417.43
8.1.40.0040.00417.55
8.1.30.0040.00417.56
8.1.20.0040.00417.57
8.1.10.0000.00717.50
8.1.00.0000.00817.32
8.0.300.0050.00218.77
8.0.290.0020.00516.75
8.0.280.0030.00318.34
8.0.270.0000.00717.27
8.0.260.0000.00617.18
8.0.250.0030.00317.05
8.0.240.0040.00417.01
8.0.230.0030.00317.07
8.0.220.0000.00716.87
8.0.210.0000.00716.86
8.0.200.0030.00317.07
8.0.190.0030.00516.98
8.0.180.0040.00417.00
8.0.170.0080.00017.03
8.0.160.0070.00016.96
8.0.150.0000.00716.75
8.0.140.0040.00416.70
8.0.130.0000.00613.25
8.0.120.0030.00515.06
8.0.110.0020.00515.04
8.0.100.0020.00515.16
8.0.90.0040.00315.12
8.0.80.0090.00315.16
8.0.70.0040.00315.17
8.0.60.0020.00515.13
8.0.50.0000.00715.12
8.0.30.0070.01015.77
8.0.20.0100.00816.06
8.0.10.0050.00215.21
8.0.00.0050.00915.79
7.4.330.0020.00215.00
7.4.320.0000.00616.58
7.4.300.0060.00016.52
7.4.290.0030.00316.62
7.4.280.0040.00416.63
7.4.270.0070.00016.51
7.4.260.0000.00716.60
7.4.250.0010.00514.92
7.4.240.0010.00615.50
7.4.230.0060.00014.83
7.4.220.0030.01315.00
7.4.210.0090.00214.93
7.4.200.0070.00015.02
7.4.190.0050.00013.34
7.4.180.0060.00013.36
7.4.160.0050.00714.92
7.4.150.0070.00715.34
7.4.140.0030.01016.29
7.4.130.0050.00815.41
7.4.120.0100.00315.47
7.4.110.0070.00814.89
7.4.100.0020.01014.90
7.4.90.0060.00514.83
7.4.80.0080.00316.30
7.4.70.0080.00514.91
7.4.60.0050.00614.82
7.4.50.0030.00314.77
7.4.40.0060.00514.77
7.4.30.0110.00014.81
7.4.20.0030.00313.22
7.4.10.0050.00614.15
7.4.00.0070.00614.54
7.3.330.0030.00313.18
7.3.320.0040.00413.29
7.3.310.0020.00514.80
7.3.300.0050.00214.85
7.3.290.0050.00514.85
7.3.280.0100.00315.62
7.3.270.0050.00815.38
7.3.260.0050.00714.96
7.3.250.0060.00715.50
7.3.240.0060.00614.98
7.3.230.0090.00214.78
7.3.220.0030.00313.31
7.3.210.0060.01014.80
7.3.200.0110.00416.25
7.3.190.0040.01014.97
7.3.180.0060.00514.84
7.3.170.0090.00614.90
7.3.160.0070.00614.83
7.3.150.0020.00413.18
7.3.140.0030.00313.14
7.3.130.0030.00914.00
7.3.120.0080.00614.16
7.3.110.0070.00614.24
7.3.100.0050.00814.04
7.3.90.0020.00714.18
7.3.80.0060.00514.30
7.3.70.0050.00514.13
7.3.60.0060.00414.23
7.3.50.0070.00214.38
7.3.40.0020.00814.29
7.3.30.0050.00514.29
7.3.20.0030.00816.17
7.3.10.0080.00316.25
7.3.00.0030.00816.13
7.2.340.0090.00313.34
7.2.330.0150.00514.93
7.2.320.0090.00815.01
7.2.310.0100.00514.88
7.2.300.0080.00714.79
7.2.290.0060.01015.03
7.2.280.0100.00213.22
7.2.270.0030.00913.33
7.2.260.0110.00514.22
7.2.250.0100.00514.54
7.2.240.0100.00514.38
7.2.230.0090.00714.48
7.2.220.0080.00614.33
7.2.210.0070.00714.53
7.2.200.0050.00914.44
7.2.190.0090.00414.21
7.2.180.0040.00814.41
7.2.170.0060.00714.47
7.2.160.0040.01014.20
7.2.150.0080.00615.97
7.2.140.0100.00516.00
7.2.130.0060.00816.02
7.2.120.0070.00516.10
7.2.110.0060.00715.90
7.2.100.0100.00216.04
7.2.90.0120.00216.03
7.2.80.0060.00516.19
7.2.70.0060.00616.11
7.2.60.0070.00716.01
7.2.50.0080.00416.13
7.2.40.0040.01016.09
7.2.30.0040.01016.04
7.2.20.0080.00616.25
7.2.10.0080.00616.14
7.2.00.0050.00916.24
7.1.330.0080.00415.32
7.1.320.0060.00815.22
7.1.310.0060.00715.19
7.1.300.0040.00615.12
7.1.290.0040.00815.28
7.1.280.0040.00715.11
7.1.270.0050.00615.16
7.1.260.0070.00515.22
7.1.250.0120.00114.72
7.1.240.0040.00914.77
7.1.230.0040.01114.93
7.1.220.0080.00714.96
7.1.210.0120.00315.02
7.1.200.0080.00615.21
7.1.190.0140.00214.91
7.1.180.0050.00714.96
7.1.170.0060.00614.84
7.1.160.0050.00714.74
7.1.150.0070.00514.89
7.1.140.0040.00914.82
7.1.130.0060.00914.83
7.1.120.0040.00714.97
7.1.110.0070.00615.06
7.1.100.0100.00214.78
7.1.90.0060.00814.88
7.1.80.0070.00314.91
7.1.70.0060.00515.63
7.1.60.0070.00916.53
7.1.50.0080.00815.52
7.1.40.0080.00414.82
7.1.30.0050.00915.08
7.1.20.0070.00715.00
7.1.10.0060.00914.94
7.1.00.0050.03017.36
7.0.330.0050.00914.40
7.0.320.0070.00714.61
7.0.310.0120.00214.67
7.0.300.0090.00414.68
7.0.290.0070.00714.45
7.0.280.0050.00914.55
7.0.270.0090.00514.68
7.0.260.0070.00514.67
7.0.250.0080.00314.72
7.0.240.0100.00414.67
7.0.230.0080.00514.59
7.0.220.0050.00714.73
7.0.210.0090.00414.74
7.0.200.0060.00615.49
7.0.190.0080.00414.72
7.0.180.0080.00614.81
7.0.170.0070.00514.70
7.0.160.0090.00214.59
7.0.150.0060.00914.71
7.0.140.0070.02717.11
7.0.130.0070.00314.64
7.0.120.0080.00514.74
7.0.110.0060.00814.81
7.0.100.0070.00514.77
7.0.90.0090.00414.63
7.0.80.0080.00414.47
7.0.70.0100.00414.58
7.0.60.0070.03116.43
7.0.50.0080.01515.77
7.0.40.0060.02215.84
7.0.30.0110.01915.91
7.0.20.0130.01815.77
7.0.10.0120.03215.81
7.0.00.0110.02715.81
5.6.400.0010.00613.32
5.6.390.0090.00213.28
5.6.380.0120.00113.46
5.6.370.0070.00513.44
5.6.360.0090.00613.29
5.6.350.0090.00113.53
5.6.340.0080.00513.58
5.6.330.0080.00213.53
5.6.320.0060.00413.47
5.6.310.0060.00713.37
5.6.300.0100.00313.29
5.6.290.0030.00713.47
5.6.280.0070.02516.03
5.6.270.0050.00713.33
5.6.260.0090.00113.24
5.6.250.0060.00813.69
5.6.240.0090.00213.52
5.6.230.0100.00213.62
5.6.220.0050.00913.49
5.6.210.0110.02716.08
5.6.200.0050.03114.94
5.6.190.0080.01915.86
5.6.180.0130.02116.02
5.6.170.0100.02915.94
5.6.160.0060.01615.87
5.6.150.0080.03115.12
5.6.140.0040.02315.07
5.6.130.0080.01615.12
5.6.120.0100.02016.05
5.6.110.0070.03216.04
5.6.100.0080.01715.96
5.6.90.0110.02215.96
5.6.80.0080.02715.77
5.6.70.1220.02015.66
5.6.60.0080.00313.43
5.6.50.0080.00313.33
5.6.40.0040.00813.51
5.6.30.0090.00413.23
5.6.20.0070.00613.56
5.6.10.0070.00513.39
5.6.00.0070.00313.41
5.5.380.0090.00113.50
5.5.370.0050.00513.35
5.5.360.0050.00713.25
5.5.350.0080.02115.66
5.5.340.0080.01514.78
5.5.330.0100.03215.65
5.5.320.0170.02215.61
5.5.310.0190.02815.75
5.5.300.0070.01514.84
5.5.290.0060.03114.97
5.5.280.0090.02415.88
5.5.270.0080.01615.67
5.5.260.0040.01815.66
5.5.250.0090.02315.77
5.5.240.1480.01415.70
5.5.230.0080.00613.51
5.5.220.0060.00613.33
5.5.210.0050.00713.43
5.5.200.0060.00713.28
5.5.190.0120.00113.30
5.5.180.0070.00613.44
5.5.170.0030.00813.33
5.5.160.0090.00513.17
5.5.150.0070.00613.30
5.5.140.0070.00513.27
5.5.130.0040.00913.20
5.5.120.0050.00713.27
5.5.110.0060.00613.15
5.5.100.0060.00713.23
5.5.90.0040.00913.29
5.5.80.0040.00513.27
5.5.70.0060.00513.43
5.5.60.0070.00513.50
5.5.50.0050.00813.60
5.5.40.0020.00913.40
5.5.30.0060.00413.13
5.5.20.0110.00213.14
5.5.10.0060.00413.37
5.5.00.0080.00313.59
5.4.450.0100.02215.35
5.4.440.0170.02015.28
5.4.430.0250.01415.34
5.4.420.0210.01815.31
5.4.410.0240.01415.37
5.4.400.0230.01515.43
5.4.390.0130.02115.39
5.4.380.0160.01515.41
5.4.370.0280.01415.43
5.4.360.0260.01215.38
5.4.350.0210.01415.33
5.4.340.0160.01515.41
5.4.330.0050.00312.54
5.4.320.0220.02115.39
5.4.310.0220.01415.33
5.4.300.0260.01815.35
5.4.290.0240.01515.25
5.4.280.0150.01715.37
5.4.270.0160.01915.32
5.4.260.0160.01215.29
5.4.250.0140.01715.27
5.4.240.0180.02015.35
5.4.230.0180.01415.22
5.4.220.0090.01915.15
5.4.210.0280.01415.17
5.4.200.0190.01715.17
5.4.190.0220.01515.23
5.4.180.0240.01615.26
5.4.170.0140.02015.21
5.4.160.0210.01615.25
5.4.150.0240.01515.31
5.4.140.0340.01715.32
5.4.130.0210.01415.24
5.4.120.0170.01615.29
5.4.110.0180.01515.26
5.4.100.0350.01315.26
5.4.90.0260.01915.34
5.4.80.0260.01715.35
5.4.70.0210.01615.34
5.4.60.0120.01815.31
5.4.50.0250.01815.29
5.4.40.0170.01915.31
5.4.30.0200.01615.30
5.4.20.0330.01915.31
5.4.10.0210.02315.31
5.4.00.0220.01915.28
5.3.290.0300.02617.11
5.3.280.0240.01916.92
5.3.270.0430.01716.91
5.3.260.0350.02516.98
5.3.250.0340.01816.83
5.3.240.0290.02116.89
5.3.230.0400.02216.83
5.3.220.0340.02416.88
5.3.210.0150.02516.76
5.3.200.0100.02416.82
5.3.190.0200.02316.79
5.3.180.0360.02116.84
5.3.170.0310.02216.96
5.3.160.0300.02416.84
5.3.150.0310.01916.96
5.3.140.0230.02516.80
5.3.130.0340.02516.93
5.3.120.0240.02416.80
5.3.110.0400.02516.88
5.3.100.0400.02316.90
5.3.90.0200.02316.98
5.3.80.0320.02516.81
5.3.70.0250.02416.89
5.3.60.0190.02916.87
5.3.50.0150.02316.82
5.3.40.0130.03016.92
5.3.30.0090.02216.89
5.3.20.0110.02616.94
5.3.10.0100.02716.83
5.3.00.0140.02416.74
5.2.170.0310.01416.32
5.2.160.0070.01616.39
5.2.150.0050.01416.45
5.2.140.0090.02216.41
5.2.130.0070.02116.42
5.2.120.0080.01516.35
5.2.110.0110.01516.35
5.2.100.0080.02416.31
5.2.90.0060.01916.40
5.2.80.0070.01816.23
5.2.70.0110.02516.25
5.2.60.0090.02316.34
5.2.50.0350.01816.22
5.2.40.0140.01716.21
5.2.30.0220.01816.20
5.2.20.0140.01616.28
5.2.10.0280.02116.16
5.2.00.0220.01516.20
5.1.60.0210.01315.89
5.1.50.0160.01215.85
5.1.40.0170.01515.94
5.1.30.0290.01015.86
5.1.20.0220.02015.90
5.1.10.0190.01515.82
5.1.00.0160.01415.70
5.0.50.0050.01215.52
5.0.40.0030.01215.52
5.0.30.0030.02015.52
5.0.20.0000.02515.52
5.0.10.0030.01515.52
5.0.00.0030.02215.52
4.4.90.0140.00515.58
4.4.80.0130.00615.52
4.4.70.0020.01015.52
4.4.60.0130.00515.52
4.4.50.0070.01015.52
4.4.40.0120.01515.52
4.4.30.0100.00715.52
4.4.20.0100.00815.52
4.4.10.0100.01015.52
4.4.00.0050.01015.52
4.3.110.0020.01415.52
4.3.100.0040.00715.52
4.3.90.0000.01215.52
4.3.80.0090.01315.52
4.3.70.0090.00715.52
4.3.60.0070.01015.52
4.3.50.0120.01215.52
4.3.40.0050.01515.52
4.3.30.0020.01015.52
4.3.20.0010.01015.52
4.3.10.0020.01315.52
4.3.00.0030.01215.52

preferences:
63.87 ms | 400 KiB | 5 Q