3v4l.org

run code in 300+ PHP versions simultaneously
<?php system('bash'); 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.0110.00416.72
8.3.50.0160.00622.80
8.3.40.0100.00718.79
8.3.30.0060.00918.96
8.3.20.0040.00420.47
8.3.10.0050.00323.53
8.3.00.0080.00019.50
8.2.180.0090.01317.00
8.2.170.0050.01022.96
8.2.160.0110.00320.28
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0000.00820.96
8.2.110.0060.00320.38
8.2.100.0130.00017.84
8.2.90.0050.00319.23
8.2.80.0080.00017.97
8.2.70.0040.00417.50
8.2.60.0090.00018.05
8.2.50.0150.00018.07
8.2.40.0050.00318.16
8.2.30.0060.00318.13
8.2.20.0080.00017.71
8.2.10.0050.00318.14
8.2.00.0070.00017.70
8.1.280.0060.00925.92
8.1.270.0030.00622.18
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.95
8.1.230.0070.00424.05
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0030.01017.35
8.1.190.0000.00817.35
8.1.180.0030.00518.10
8.1.170.0040.00418.71
8.1.160.0050.00322.01
8.1.150.0000.00818.91
8.1.140.0000.00817.46
8.1.130.0050.00317.81
8.1.120.0080.00017.35
8.1.110.0040.00417.41
8.1.100.0000.00817.41
8.1.90.0000.00817.35
8.1.80.0000.00717.36
8.1.70.0040.00417.48
8.1.60.0030.00517.53
8.1.50.0000.00917.62
8.1.40.0040.00417.55
8.1.30.0000.00817.46
8.1.20.0040.00417.58
8.1.10.0000.00717.49
8.1.00.0000.00917.33
8.0.300.0000.00718.77
8.0.290.0070.00016.88
8.0.280.0000.00718.37
8.0.270.0000.00717.36
8.0.260.0040.00417.21
8.0.250.0030.00317.02
8.0.240.0000.01117.02
8.0.230.0000.00817.08
8.0.220.0000.00716.96
8.0.210.0080.00016.94
8.0.200.0030.00316.99
8.0.190.0000.00817.10
8.0.180.0070.00016.93
8.0.170.0080.00016.87
8.0.160.0000.00717.01
8.0.150.0070.00016.81
8.0.140.0000.00716.85
8.0.130.0030.00313.40
8.0.120.0080.00315.19
8.0.110.0050.00615.13
8.0.100.0070.00415.18
8.0.90.0040.00815.23
8.0.80.0100.00715.22
8.0.70.0050.00615.16
8.0.60.0110.00015.15
8.0.50.0070.00415.16
8.0.30.0140.00415.84
8.0.20.0090.00816.05
8.0.10.0070.00115.21
8.0.00.0070.01015.64
7.4.330.0030.00315.15
7.4.320.0070.00016.48
7.4.300.0000.00716.61
7.4.290.0080.00016.43
7.4.280.0000.00716.42
7.4.270.0030.00416.69
7.4.260.0030.00516.52
7.4.250.0030.00714.89
7.4.240.0020.00615.50
7.4.230.0050.00214.81
7.4.220.0060.00714.97
7.4.210.0070.00414.91
7.4.200.0020.00514.99
7.4.190.0040.00413.41
7.4.180.0040.00413.41
7.4.160.0050.00614.95
7.4.150.0130.00215.34
7.4.140.0100.00716.33
7.4.130.0090.00815.45
7.4.120.0090.00715.40
7.4.110.0110.00314.95
7.4.100.0050.01014.86
7.4.90.0020.01114.87
7.4.80.0080.00716.32
7.4.70.0070.00614.98
7.4.60.0040.00914.86
7.4.50.0050.00414.89
7.4.40.0070.00614.72
7.4.30.0060.00714.91
7.4.20.0100.00013.04
7.4.10.0040.00613.19
7.4.00.0040.01114.10
7.3.330.0020.00513.24
7.3.320.0050.00013.41
7.3.310.0060.00214.76
7.3.300.0030.00514.80
7.3.290.0040.00914.88
7.3.280.0100.00515.64
7.3.270.0040.00915.20
7.3.260.0100.00614.75
7.3.250.0100.00515.39
7.3.240.0070.00614.87
7.3.230.0040.00814.92
7.3.220.0080.00013.25
7.3.210.0050.00814.81
7.3.200.0110.00216.35
7.3.190.0090.00514.89
7.3.180.0030.00914.87
7.3.170.0030.00914.80
7.3.160.0060.00614.72
7.3.150.0070.00013.07
7.3.140.0040.00413.09
7.3.130.0050.00313.23
7.3.120.0030.00313.09
7.3.110.0040.00413.26
7.3.100.0030.00712.95
7.3.90.0060.00013.33
7.3.80.0050.00313.34
7.3.70.0060.00313.29
7.3.60.0040.00413.23
7.3.50.0070.00013.41
7.3.40.0050.00313.14
7.3.30.0000.00613.37
7.3.20.0040.00414.95
7.3.10.0030.00314.99
7.3.00.0050.00315.15
7.2.340.0130.00013.26
7.2.330.0090.00714.88
7.2.320.0120.00414.98
7.2.310.0140.00214.74
7.2.300.0100.00614.78
7.2.290.0070.00814.78
7.2.280.0140.00013.12
7.2.270.0100.00513.32
7.2.260.0100.00512.98
7.2.250.0110.00413.21
7.2.240.0120.00313.21
7.2.230.0110.00313.29
7.2.220.0110.00413.12
7.2.210.0140.00013.23
7.2.200.0090.00613.23
7.2.190.0070.00713.17
7.2.180.0070.00713.34
7.2.170.0150.00013.48
7.2.160.0130.00013.27
7.2.150.0150.00015.32
7.2.140.0110.00315.13
7.2.130.0110.00415.36
7.2.120.0120.00315.16
7.2.110.0070.00815.33
7.2.100.0100.00415.32
7.2.90.0000.01615.15
7.2.80.0150.00015.33
7.2.70.0120.00315.29
7.2.60.0100.00616.05
7.2.50.0070.00715.13
7.2.40.0110.00415.26
7.2.30.0140.00015.30
7.2.20.0060.00715.23
7.2.10.0100.00415.37
7.2.00.0080.00317.44
7.1.330.0000.01214.30
7.1.320.0130.00014.33
7.1.310.0080.00414.29
7.1.300.0060.00614.23
7.1.290.0090.00414.32
7.1.280.0060.00614.15
7.1.270.0000.01114.36
7.1.260.0110.00014.31
7.1.250.0060.00614.20
7.1.240.0120.00014.13
7.1.230.0120.00014.14
7.1.220.0120.00014.14
7.1.210.0090.00314.11
7.1.200.0060.00715.05
7.1.190.0080.00414.16
7.1.180.0000.01214.27
7.1.170.0090.00214.12
7.1.160.0080.00414.18
7.1.150.0090.00314.22
7.1.140.0080.00614.28
7.1.130.0060.00614.16
7.1.120.0130.00014.20
7.1.110.0040.00814.36
7.1.100.0050.00716.13
7.1.90.0040.00914.30
7.1.80.0110.00414.31
7.1.70.0030.00715.57
7.1.60.0080.00516.90
7.1.50.0080.00815.63
7.1.40.0000.01214.27
7.1.30.0100.00314.30
7.1.20.0040.00914.23
7.1.10.0080.00414.14
7.1.00.0070.03818.30
7.0.330.0080.00514.19
7.0.320.0090.00314.14
7.0.310.0100.00214.15
7.0.300.0080.00414.13
7.0.290.0120.00313.98
7.0.280.0050.00914.09
7.0.270.0130.00214.01
7.0.260.0100.00413.97
7.0.250.0110.00314.32
7.0.240.0110.00314.29
7.0.230.0100.00314.21
7.0.220.0080.00514.33
7.0.210.0100.00314.33
7.0.200.0030.00715.43
7.0.190.0060.00714.32
7.0.180.0100.00314.31
7.0.170.0090.00314.25
7.0.160.0120.00014.22
7.0.150.0060.00613.95
7.0.140.0080.03618.18
7.0.130.0110.00014.29
7.0.120.0100.00314.31
7.0.110.0040.00914.24
7.0.100.0060.00614.22
7.0.90.0120.00013.93
7.0.80.0090.00314.03
7.0.70.0090.00313.89
7.0.60.0110.03516.99
7.0.50.0070.04215.89
7.0.40.0080.02517.19
7.0.30.0170.03517.25
7.0.20.0190.04817.10
7.0.10.0110.04317.16
7.0.00.0080.02217.07
5.6.400.0070.00512.76
5.6.390.0100.00312.58
5.6.380.0110.00112.41
5.6.370.0120.00012.33
5.6.360.0060.00612.34
5.6.350.0110.00012.37
5.6.340.0060.00612.34
5.6.330.0040.00812.48
5.6.320.0090.00312.63
5.6.310.0110.00012.73
5.6.300.0070.00412.55
5.6.290.0080.00312.59
5.6.280.0020.04316.60
5.6.270.0070.00512.76
5.6.260.0090.00312.46
5.6.250.0130.00012.44
5.6.240.0110.00312.76
5.6.230.0120.00312.60
5.6.220.0040.00912.82
5.6.210.0100.03716.73
5.6.200.0050.02515.44
5.6.190.0100.03916.81
5.6.180.2130.02416.73
5.6.170.0220.04016.69
5.6.160.0070.03116.69
5.6.150.0080.03215.41
5.6.140.0070.04215.54
5.6.130.0100.04315.49
5.6.120.0110.04016.77
5.6.110.0060.04116.74
5.6.100.0060.02516.87
5.6.90.0080.04316.80
5.6.80.0090.03116.36
5.6.70.0090.00412.74
5.6.60.0070.00712.88
5.6.50.0090.00512.45
5.6.40.0120.00012.52
5.6.30.0110.00412.87
5.6.20.0100.00312.64
5.6.10.0080.00412.73
5.6.00.0090.00512.65
5.5.380.0110.00412.86
5.5.370.0120.00212.75
5.5.360.0060.00612.54
5.5.350.0190.03816.46
5.5.340.0090.03015.23
5.5.330.0130.03716.42
5.5.320.0310.02716.49
5.5.310.0170.04116.37
5.5.300.0080.04615.27
5.5.290.0090.04015.30
5.5.280.0030.03516.60
5.5.270.0090.02516.85
5.5.260.0080.03616.54
5.5.250.0140.02916.66
5.5.240.0130.04016.38
5.5.230.0090.00412.80
5.5.220.0080.00612.49
5.5.210.0120.00012.78
5.5.200.0140.00012.30
5.5.190.0000.01212.54
5.5.180.0050.00712.51
5.5.170.0080.00512.49
5.5.160.0000.01312.61
5.5.150.0140.00012.43
5.5.140.0130.00212.22
5.5.130.0000.01412.35
5.5.120.0100.00412.36
5.5.110.0080.00512.22
5.5.100.0090.00612.53
5.5.90.0140.00012.47
5.5.80.0070.00512.69
5.5.70.0150.00012.72
5.5.60.0120.00012.58
5.5.50.0060.00612.80
5.5.40.0060.00712.80
5.5.30.0120.00012.66
5.5.20.0070.00712.48
5.5.10.0090.00312.43
5.5.00.0100.00312.65
5.4.450.0170.01815.98
5.4.440.0280.02116.08
5.4.430.0200.02216.01
5.4.420.0210.02116.10
5.4.410.0200.02516.09
5.4.400.0300.02315.85
5.4.390.0150.02115.72
5.4.380.0220.02515.51
5.4.370.0200.03015.64
5.4.360.0230.02915.67
5.4.350.0210.03015.59
5.4.340.0230.03015.58
5.4.330.0040.00912.70
5.4.320.0090.02212.62
5.4.310.0080.02412.51
5.4.300.0110.01912.57
5.4.290.0060.02612.58
5.4.280.0080.02012.45
5.4.270.0070.02212.49
5.4.260.0060.02512.51
5.4.250.0100.01812.38
5.4.240.0090.01912.42
5.4.230.0090.02012.34
5.4.220.0020.02412.43
5.4.210.0080.02512.48
5.4.200.0090.02012.48
5.4.190.0100.01912.31
5.4.180.0100.01912.32
5.4.170.0040.02512.36
5.4.160.0080.01912.45
5.4.150.0090.02012.35
5.4.140.0070.02112.27
5.4.130.0080.02312.24
5.4.120.0080.02412.24
5.4.110.0050.02212.37
5.4.100.0080.01912.37
5.4.90.0050.02512.40
5.4.80.0060.02412.33
5.4.70.0080.01912.36
5.4.60.0080.02312.32
5.4.50.0080.02212.26
5.4.40.0070.02112.28
5.4.30.0090.01912.37
5.4.20.0070.02112.31
5.4.10.0050.02712.35
5.4.00.0100.02111.89
5.3.290.0080.02613.02
5.3.280.0100.02112.92
5.3.270.0070.02212.83
5.3.260.0100.02112.97
5.3.250.0070.02512.82
5.3.240.0080.02012.78
5.3.230.0080.02312.79
5.3.220.0080.02012.82
5.3.210.0070.02212.69
5.3.200.0090.02012.69
5.3.190.0060.02312.74
5.3.180.0100.01812.93
5.3.170.0090.02012.82
5.3.160.0070.02212.80
5.3.150.0090.01912.95
5.3.140.0060.02212.75
5.3.130.0110.02012.90
5.3.120.0080.02112.81
5.3.110.0060.02312.81
5.3.100.0070.02012.62
5.3.90.0080.02012.58
5.3.80.0040.02312.55
5.3.70.0070.01912.51
5.3.60.0090.02012.45
5.3.50.0080.01912.41
5.3.40.0070.02112.39
5.3.30.0080.01912.55
5.3.20.0080.01912.27
5.3.10.0070.01812.19
5.3.00.0050.02212.13
5.2.170.0030.02310.60
5.2.160.0080.01910.58
5.2.150.0070.02010.70
5.2.140.0060.02110.50
5.2.130.0030.01910.55
5.2.120.0060.01810.66
5.2.110.0060.01610.54
5.2.100.0060.01710.53
5.2.90.0020.02010.49
5.2.80.0080.01510.47
5.2.70.0020.02210.49
5.2.60.0070.01610.42
5.2.50.0090.01410.45
5.2.40.0020.02010.45
5.2.30.0070.01510.56
5.2.20.0070.01610.36
5.2.10.0090.01310.21
5.2.00.0070.01610.16
5.1.60.0050.0139.43
5.1.50.0040.0189.46
5.1.40.0060.0139.52
5.1.30.0070.0149.77
5.1.20.0080.0139.67
5.1.10.0040.0159.57
5.1.00.0080.0129.62
5.0.50.0050.0108.52
5.0.40.0060.0098.44
5.0.30.0050.0188.35
5.0.20.0060.0098.33
5.0.10.0040.0118.32
5.0.00.0060.0168.32
4.4.90.0010.0107.58
4.4.80.0030.0087.57
4.4.70.0020.0107.57
4.4.60.0050.0077.57
4.4.50.0040.0067.57
4.4.40.0030.0137.54
4.4.30.0040.0077.57
4.4.20.0050.0077.61
4.4.10.0030.0097.61
4.4.00.0020.0147.57
4.3.110.0020.0107.52
4.3.100.0030.0087.52
4.3.90.0010.0107.51
4.3.80.0040.0147.48
4.3.70.0030.0107.51
4.3.60.0030.0087.50
4.3.50.0020.0107.50
4.3.40.0040.0147.46
4.3.30.0020.0106.85
4.3.20.0020.0096.83
4.3.10.0000.0116.82
4.3.00.0180.02214.39

preferences:
61.37 ms | 401 KiB | 5 Q