3v4l.org

run code in 300+ PHP versions simultaneously
<?php system('help'); 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.0120.00316.75
8.3.50.0120.01023.00
8.3.40.0120.00318.84
8.3.30.0030.01119.09
8.3.20.0070.00020.17
8.3.10.0000.00823.53
8.3.00.0080.00019.38
8.2.180.0090.00616.63
8.2.170.0070.00722.96
8.2.160.0140.00720.35
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0040.00420.94
8.2.110.0060.00320.35
8.2.100.0090.00317.72
8.2.90.0030.00617.97
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0000.01118.07
8.2.40.0080.00018.16
8.2.30.0040.00418.05
8.2.20.0030.00517.64
8.2.10.0000.00718.01
8.2.00.0000.00717.66
8.1.280.0090.00625.92
8.1.270.0050.00322.08
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00019.13
8.1.230.0060.00621.04
8.1.220.0040.00417.78
8.1.210.0040.00419.10
8.1.200.0000.01217.36
8.1.190.0000.00817.34
8.1.180.0060.00318.10
8.1.170.0040.00718.57
8.1.160.0040.00422.02
8.1.150.0000.00718.87
8.1.140.0030.00617.46
8.1.130.0000.00717.91
8.1.120.0000.00717.38
8.1.110.0000.00817.40
8.1.100.0000.00717.47
8.1.90.0020.00517.53
8.1.80.0040.00417.36
8.1.70.0030.00617.48
8.1.60.0000.00817.58
8.1.50.0080.00017.50
8.1.40.0050.00317.36
8.1.30.0040.00417.62
8.1.20.0040.00417.63
8.1.10.0040.00417.40
8.1.00.0040.00417.38
8.0.300.0040.00419.95
8.0.290.0070.00016.75
8.0.280.0040.00418.52
8.0.270.0000.00717.34
8.0.260.0000.00717.25
8.0.250.0000.00716.96
8.0.240.0030.00616.91
8.0.230.0050.00316.89
8.0.220.0070.00016.89
8.0.210.0000.00716.81
8.0.200.0000.00717.01
8.0.190.0040.00416.95
8.0.180.0040.00416.85
8.0.170.0030.00616.88
8.0.160.0040.00416.89
8.0.150.0000.00716.98
8.0.140.0070.00016.87
8.0.130.0030.00313.48
8.0.120.0030.00515.13
8.0.110.0030.00415.10
8.0.100.0000.00715.17
8.0.90.0030.00515.08
8.0.80.0070.00615.18
8.0.70.0020.00615.16
8.0.60.0030.00515.24
8.0.50.0030.00415.15
8.0.30.0080.00915.93
8.0.20.0080.00616.07
8.0.10.0040.00315.21
8.0.00.0080.00915.65
7.4.330.0000.00515.13
7.4.320.0060.00016.54
7.4.300.0000.00816.67
7.4.290.0030.00516.55
7.4.280.0030.00616.46
7.4.270.0000.00716.54
7.4.260.0000.00816.52
7.4.250.0010.00614.87
7.4.240.0040.00415.43
7.4.230.0040.00214.88
7.4.220.0050.00714.86
7.4.210.0040.00614.80
7.4.200.0000.00614.98
7.4.190.0030.00313.36
7.4.180.0000.00613.34
7.4.160.0040.01014.84
7.4.150.0080.00415.30
7.4.140.0070.00816.31
7.4.130.0020.01215.53
7.4.120.0080.00615.45
7.4.110.0090.00314.91
7.4.100.0080.00514.86
7.4.90.0040.00714.86
7.4.80.0090.00316.31
7.4.70.0030.00814.82
7.4.60.0070.00414.89
7.4.50.0050.00214.91
7.4.40.0060.00614.84
7.4.30.0070.00714.88
7.4.20.0050.00013.22
7.4.10.0060.00714.09
7.4.00.0060.01014.51
7.3.330.0070.00013.36
7.3.320.0050.00013.14
7.3.310.0040.00214.92
7.3.300.0030.00314.78
7.3.290.0060.00514.86
7.3.280.0040.01015.60
7.3.270.0050.00715.36
7.3.260.0030.01014.89
7.3.250.0100.00415.27
7.3.240.0100.00314.78
7.3.230.0050.00614.89
7.3.220.0050.00013.31
7.3.210.0100.00314.81
7.3.200.0060.00616.32
7.3.190.0060.00614.83
7.3.180.0070.00514.88
7.3.170.0050.00814.80
7.3.160.0030.00914.67
7.3.150.0000.00613.07
7.3.140.0000.00613.05
7.3.130.0060.00613.99
7.3.120.0080.00714.46
7.3.110.0070.00614.07
7.3.100.0060.00614.42
7.3.90.0050.00614.51
7.3.80.0030.00614.37
7.3.70.0060.00714.22
7.3.60.0040.00914.20
7.3.50.0060.00714.18
7.3.40.0050.00714.35
7.3.30.0050.00514.40
7.3.20.0060.00716.16
7.3.10.0050.00516.10
7.3.00.0070.00616.21
7.2.340.0040.00913.27
7.2.330.0170.01214.86
7.2.320.0070.00715.01
7.2.310.0050.01114.83
7.2.300.0100.00514.94
7.2.290.0050.00914.90
7.2.280.0130.00013.32
7.2.270.0090.00413.22
7.2.260.0070.00914.07
7.2.250.0070.01014.35
7.2.240.0090.00614.33
7.2.230.0090.00514.33
7.2.220.0060.00714.44
7.2.210.0030.00914.49
7.2.200.0100.00314.37
7.2.190.0090.00714.37
7.2.180.0100.00514.35
7.2.170.0060.01014.54
7.2.160.0090.00514.19
7.2.150.0100.00416.19
7.2.140.0110.00616.09
7.2.130.0100.00216.17
7.2.120.0050.00716.04
7.2.110.0100.00516.04
7.2.100.0050.00816.18
7.2.90.0090.00516.17
7.2.80.0080.00816.07
7.2.70.0090.00916.09
7.2.60.0060.00815.86
7.2.50.0090.00515.99
7.2.40.0070.00815.98
7.2.30.0070.00916.07
7.2.20.0100.00516.13
7.2.10.0070.01016.09
7.2.00.0040.00916.22
7.1.330.0080.00715.29
7.1.320.0040.00715.32
7.1.310.0070.00715.18
7.1.300.0060.00715.34
7.1.290.0060.01015.33
7.1.280.0070.00615.26
7.1.270.0060.00615.32
7.1.260.0080.00715.34
7.1.250.0070.00614.93
7.1.240.0100.00515.04
7.1.230.0080.00615.10
7.1.220.0090.00515.15
7.1.210.0080.00314.93
7.1.200.0100.00415.31
7.1.190.0030.00815.06
7.1.180.0080.00614.78
7.1.170.0130.00214.91
7.1.160.0040.00915.10
7.1.150.0110.00315.05
7.1.140.0060.00814.99
7.1.130.0080.00814.97
7.1.120.0090.00514.81
7.1.110.0080.00415.12
7.1.100.0100.00315.09
7.1.90.0100.00214.93
7.1.80.0060.00615.08
7.1.70.0100.00715.77
7.1.60.0060.01016.46
7.1.50.0080.01015.73
7.1.40.0090.00414.95
7.1.30.0150.00214.95
7.1.20.0080.00615.06
7.1.10.0080.00715.08
7.1.00.0070.02617.51
7.0.330.0060.00714.79
7.0.320.0110.00214.85
7.0.310.0110.00614.81
7.0.300.0060.00814.80
7.0.290.0100.00414.47
7.0.280.0080.00514.65
7.0.270.0060.00614.63
7.0.260.0100.00314.61
7.0.250.0080.00714.63
7.0.240.0070.00514.96
7.0.230.0070.00414.73
7.0.220.0100.00514.82
7.0.210.0010.01214.87
7.0.200.0070.00615.42
7.0.190.0080.00314.88
7.0.180.0080.00514.82
7.0.170.0050.00914.73
7.0.160.0040.00914.75
7.0.150.0080.00714.75
7.0.140.0050.02917.05
7.0.130.0050.00814.71
7.0.120.0080.00714.66
7.0.110.0090.00414.84
7.0.100.0100.00414.84
7.0.90.0100.00214.69
7.0.80.0070.00314.60
7.0.70.0070.00614.67
7.0.60.0100.02816.45
7.0.50.0050.02215.67
7.0.40.0100.03315.99
7.0.30.0220.02915.75
7.0.20.0130.03015.93
7.0.10.0110.03415.89
7.0.00.0100.03115.85
5.6.400.0080.00313.41
5.6.390.0070.00613.29
5.6.380.0080.00713.19
5.6.370.0090.00313.34
5.6.360.0060.00513.29
5.6.350.0060.00513.41
5.6.340.0040.01113.36
5.6.330.0080.00513.62
5.6.320.0070.00513.59
5.6.310.0060.01013.40
5.6.300.0090.00513.52
5.6.290.0070.00313.43
5.6.280.0050.03016.13
5.6.270.0090.00513.66
5.6.260.0080.00613.57
5.6.250.0120.00213.35
5.6.240.0050.00613.76
5.6.230.0050.00713.63
5.6.220.0050.00913.53
5.6.210.0070.03115.94
5.6.200.0080.02915.18
5.6.190.0070.03215.89
5.6.180.0160.01315.91
5.6.170.0130.03215.99
5.6.160.0050.02015.92
5.6.150.0030.03315.20
5.6.140.0080.03015.22
5.6.130.0050.02014.94
5.6.120.0050.03516.03
5.6.110.0050.03016.06
5.6.100.0060.02316.04
5.6.90.0060.02815.90
5.6.80.0040.02515.81
5.6.70.1550.01415.70
5.6.60.0070.00513.33
5.6.50.0080.00613.27
5.6.40.0040.00913.32
5.6.30.0090.00413.48
5.6.20.0070.00613.27
5.6.10.0080.00313.41
5.6.00.0100.00213.47
5.5.380.0090.00313.49
5.5.370.0080.00413.33
5.5.360.0040.00613.44
5.5.350.0130.02815.73
5.5.340.0090.02814.84
5.5.330.0060.02215.56
5.5.320.0190.02615.81
5.5.310.0200.02315.69
5.5.300.0080.02214.95
5.5.290.0060.02314.84
5.5.280.0100.02815.74
5.5.270.0090.01515.84
5.5.260.0070.03215.98
5.5.250.0100.02315.89
5.5.240.1340.01515.62
5.5.230.0080.00513.42
5.5.220.0050.00813.18
5.5.210.0040.01113.34
5.5.200.0000.01313.36
5.5.190.0060.00713.30
5.5.180.0070.00513.31
5.5.170.0040.00913.42
5.5.160.0060.00513.29
5.5.150.0060.00613.26
5.5.140.0030.00913.27
5.5.130.0040.01013.34
5.5.120.0050.00813.26
5.5.110.0050.00613.12
5.5.100.0100.00313.38
5.5.90.0090.00413.25
5.5.80.0060.00713.40
5.5.70.0110.00413.41
5.5.60.0080.00513.22
5.5.50.0030.00813.39
5.5.40.0090.00413.37
5.5.30.0080.00313.31
5.5.20.0070.00613.37
5.5.10.0070.00413.24
5.5.00.0090.00113.36
5.4.450.0220.01614.78
5.4.440.0210.01814.70
5.4.430.0160.01814.75
5.4.420.0100.02114.67
5.4.410.0220.01514.72
5.4.400.0180.01614.58
5.4.390.0230.01914.67
5.4.380.0160.01914.50
5.4.370.0200.02414.52
5.4.360.0230.02514.51
5.4.350.0180.02314.49
5.4.340.0170.02814.52
5.4.330.0080.00412.31
5.4.320.0040.01712.46
5.4.310.0080.01512.49
5.4.300.0050.01812.41
5.4.290.0070.01512.46
5.4.280.0050.01512.42
5.4.270.0070.01412.43
5.4.260.0070.01612.40
5.4.250.0050.01712.36
5.4.240.0040.01912.40
5.4.230.0090.01312.35
5.4.220.0090.01212.30
5.4.210.0060.01412.39
5.4.200.0040.01912.36
5.4.190.0060.01612.35
5.4.180.0060.01512.33
5.4.170.0060.01612.41
5.4.160.0050.01512.33
5.4.150.0040.01612.35
5.4.140.0070.01512.30
5.4.130.0070.01412.25
5.4.120.0060.01512.26
5.4.110.0050.01612.33
5.4.100.0070.01512.34
5.4.90.0020.02112.30
5.4.80.0060.01812.29
5.4.70.0070.01512.33
5.4.60.0060.01612.24
5.4.50.0040.01712.21
5.4.40.0080.01612.27
5.4.30.0070.01612.33
5.4.20.0050.01812.31
5.4.10.0060.01612.34
5.4.00.0060.01612.01
5.3.290.0080.02112.89
5.3.280.0090.01912.79
5.3.270.0100.02112.81
5.3.260.0090.01912.93
5.3.250.0030.02512.95
5.3.240.0060.02112.90
5.3.230.0090.02412.92
5.3.220.0130.01712.77
5.3.210.0090.02012.77
5.3.200.0050.02212.71
5.3.190.0080.02012.72
5.3.180.0090.01912.82
5.3.170.0080.01912.93
5.3.160.0050.02112.88
5.3.150.0060.02312.80
5.3.140.0060.02112.90
5.3.130.0070.02112.78
5.3.120.0080.02212.89
5.3.110.0090.02512.78
5.3.100.0080.02012.49
5.3.90.0090.02312.61
5.3.80.0090.02012.41
5.3.70.0090.02012.55
5.3.60.0070.02212.61
5.3.50.0070.02812.39
5.3.40.0090.01812.54
5.3.30.0070.01912.55
5.3.20.0090.01712.30
5.3.10.0070.01912.32
5.3.00.0050.02112.16
5.2.170.0050.01810.54
5.2.160.0040.01710.72
5.2.150.0060.01610.55
5.2.140.0060.01710.55
5.2.130.0040.02310.66
5.2.120.0080.01510.65
5.2.110.0040.01910.65
5.2.100.0070.01610.59
5.2.90.0100.01410.54
5.2.80.0040.01810.63
5.2.70.0050.01910.47
5.2.60.0070.01710.57
5.2.50.0070.01510.55
5.2.40.0050.01910.60
5.2.30.0070.01610.56
5.2.20.0060.01410.41
5.2.10.0050.01610.33
5.2.00.0050.01810.19
5.1.60.0060.0149.59
5.1.50.0040.0159.44
5.1.40.0050.0149.67
5.1.30.0050.0149.79
5.1.20.0050.0169.70
5.1.10.0020.0189.55
5.1.00.0060.0159.60
5.0.50.0060.0108.51
5.0.40.0030.0138.44
5.0.30.0010.0218.35
5.0.20.0020.0148.34
5.0.10.0040.0158.32
5.0.00.0040.0178.32
4.4.90.0030.0097.58
4.4.80.0050.0087.57
4.4.70.0040.0087.56
4.4.60.0030.0097.57
4.4.50.0010.0107.58
4.4.40.0020.0147.54
4.4.30.0050.0077.57
4.4.20.0040.0087.61
4.4.10.0030.0087.61
4.4.00.0040.0127.57
4.3.110.0020.0107.53
4.3.100.0040.0087.52
4.3.90.0040.0077.51
4.3.80.0040.0147.48
4.3.70.0050.0087.50
4.3.60.0030.0087.50
4.3.50.0030.0087.50
4.3.40.0040.0117.46
4.3.30.0020.0096.85
4.3.20.0020.0086.84
4.3.10.0030.0086.81
4.3.00.0030.01014.39

preferences:
52.68 ms | 401 KiB | 5 Q