3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ls($path = '.') { $d = opendir($path); while ($file = readdir($d)) { if (!in_array($file, array(".", "..")) && is_dir(($path == '.' ? "/" : $path."/").$file)) ls(($path == '.' ? "/" : $path."/").$file); echo $path."/".$file."\n"; } closedir($d); } ls();

Abusive script

This script was stopped while abusing our resources

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.0.120.0090.00113.50
8.0.110.0090.00413.50
8.0.100.0080.00413.40
8.0.90.0020.01013.44
8.0.80.0110.00213.46
8.0.70.0080.00513.48
8.0.60.0080.00513.47
8.0.50.0100.00313.54
8.0.30.0090.00313.43
8.0.20.0060.00313.49
8.0.10.0060.00513.51
8.0.00.0040.00413.57
7.4.250.0180.00413.37
7.4.240.0200.00013.40
7.4.230.0130.00913.39
7.4.220.0110.01213.36
7.4.210.0210.00413.38
7.4.200.0200.00213.38
7.4.190.0230.00013.40
7.4.180.0110.01213.38
7.4.160.0170.00613.32
7.4.150.0130.01013.35
7.4.140.0190.00013.36
7.4.130.0130.00813.32
7.4.120.0160.00813.33
7.4.110.0150.00813.26
7.4.100.0120.00713.40
7.4.90.0150.00313.32
7.4.80.0170.00515.52
7.4.70.0140.00614.88
7.4.60.0080.01214.77
7.4.50.0120.00714.83
7.4.40.0140.00716.32
7.4.30.0120.00814.77
7.4.20.0160.00614.38
7.4.10.0210.00814.27
7.4.00.0100.01114.53
7.3.320.0170.00313.33
7.3.310.0210.00113.37
7.3.300.0190.00213.32
7.3.290.0120.00913.35
7.3.280.0100.00613.48
7.3.270.0110.00913.31
7.3.260.0170.00713.37
7.3.250.0140.00813.40
7.3.240.0180.00713.34
7.3.230.0130.00913.46
7.3.220.0130.01013.33
7.3.210.0150.00713.32
7.3.200.0090.01315.56
7.3.190.0110.01014.85
7.3.180.0110.00914.86
7.3.170.0140.00814.88
7.3.160.0120.00714.78
7.3.150.0100.00814.19
7.3.140.0190.00414.12
7.3.130.0200.00614.29
7.3.120.0090.01114.43
7.3.110.0110.00914.37
7.3.100.0110.00914.27
7.3.90.0160.00814.48
7.3.80.0170.00514.41
7.3.70.0110.00614.48
7.3.60.0160.00314.43
7.3.50.0160.00514.56
7.3.40.0120.00614.43
7.3.30.0090.00814.47
7.3.20.0130.00915.89
7.3.10.0090.00915.92
7.3.00.0120.00715.88
7.2.340.0130.01013.40
7.2.330.0190.00513.46
7.2.320.0120.01014.42
7.2.310.0110.01114.96
7.2.300.0140.00614.92
7.2.290.0150.00915.02
7.2.280.0120.01014.53
7.2.270.0180.00714.36
7.2.260.0190.00414.36
7.2.250.0170.00714.62
7.2.240.0110.01114.61
7.2.230.0160.00614.47
7.2.220.0160.00714.64
7.2.210.0130.00714.52
7.2.200.0130.00614.57
7.2.190.0110.00714.53
7.2.180.0150.01014.56
7.2.170.0100.01214.58
7.2.160.0150.00914.54
7.2.150.0180.00415.73
7.2.140.0220.00615.67
7.2.130.0130.00816.08
7.2.120.0130.00815.99
7.2.110.0160.00516.06
7.2.100.0140.01016.08
7.2.90.0130.00916.03
7.2.80.0140.00716.04
7.2.70.0140.00715.94
7.2.60.0140.00815.91
7.2.50.0130.00816.04
7.2.40.0170.00616.02
7.2.30.0160.01016.05
7.2.20.0160.00716.10
7.2.10.0110.00816.07
7.2.00.0140.00616.73
7.1.330.0130.00714.76
7.1.320.0090.01114.88
7.1.310.0130.00714.94
7.1.300.0110.01014.94
7.1.290.0130.00914.95
7.1.280.0110.01014.91
7.1.270.0130.00614.85
7.1.260.0120.00814.85
7.1.250.0110.00914.86
7.1.240.0170.00714.67
7.1.230.0250.00514.64
7.1.220.0120.00914.64
7.1.210.0130.00914.68
7.1.200.0180.00814.83
7.1.190.0150.00814.72
7.1.180.0130.00714.63
7.1.170.0140.00914.57
7.1.160.0120.01014.61
7.1.150.0160.00814.70
7.1.140.0150.00614.68
7.1.130.0200.00314.58
7.1.120.0170.00514.62
7.1.110.0140.00914.67
7.1.100.0110.01115.44
7.1.90.0110.01114.61
7.1.80.0160.00714.67
7.1.70.0120.00715.20
7.1.60.0130.00715.19
7.1.50.0140.00815.22
7.1.40.0130.00914.61
7.1.30.0110.01114.73
7.1.20.0200.00614.56
7.1.10.0200.00414.70
7.1.00.0110.02216.61
7.0.330.0150.01014.46
7.0.320.0090.01114.53
7.0.310.0160.00514.48
7.0.300.0140.00714.44
7.0.290.0160.00514.47
7.0.280.0120.00814.50
7.0.270.0170.00514.54
7.0.260.0230.00214.49
7.0.250.0110.01014.64
7.0.240.0130.00914.59
7.0.230.0110.01014.58
7.0.220.0100.01114.54
7.0.210.0180.00514.50
7.0.200.0140.00615.06
7.0.190.0110.01314.58
7.0.180.0090.00814.61
7.0.170.0110.00814.49
7.0.160.0100.01414.50
7.0.150.0140.00714.42
7.0.140.0140.02016.45
7.0.130.0230.00614.61
7.0.120.0150.00814.70
7.0.110.0150.00714.43
7.0.100.0140.00914.61
7.0.90.0240.00414.50
7.0.80.0120.01014.44
7.0.70.0140.00914.51
7.0.60.0140.02715.93
7.0.50.0150.01515.24
7.0.40.0120.01916.53
7.0.30.0170.01816.44
7.0.20.0190.03116.45
7.0.10.0170.02316.38
7.0.00.0150.02816.43
5.6.400.0140.01215.80
5.6.390.0080.01115.54
5.6.380.0110.00715.80
5.6.370.0040.01615.57
5.6.360.0070.01915.63
5.6.350.0200.00415.52
5.6.340.0100.01415.82
5.6.330.0120.00715.38
5.6.320.0130.00715.94
5.6.310.0210.01215.85
5.6.300.0160.00915.86
5.6.290.0180.00415.79
5.6.280.0120.03718.24
5.6.270.0040.01515.67
5.6.260.0050.01515.58
5.6.250.0200.00815.86
5.6.240.0260.00515.71
5.6.230.0110.01015.80
5.6.220.0150.01015.74
5.6.210.0200.04218.18
5.6.200.0050.04816.94
5.6.190.0080.05118.04
5.6.180.0190.04418.22
5.6.170.0130.03418.02
5.6.160.0090.04718.04
5.6.150.0100.04516.99
5.6.140.0080.02417.02
5.6.130.0040.04416.78
5.6.120.0150.02918.27
5.6.110.0110.04118.22
5.6.100.0070.02618.24
5.6.90.0120.04418.37
5.6.80.0140.02518.05
5.6.70.2270.03018.02
5.6.60.0070.01415.40
5.6.50.0080.01215.70
5.6.40.0130.00915.69
5.6.30.0100.01015.54
5.6.20.0130.00615.57
5.6.10.0130.00915.50
5.6.00.0040.02115.50
5.5.380.0140.00715.67
5.5.370.0110.00815.55
5.5.360.0080.01715.67
5.5.350.0120.04117.98
5.5.340.0210.02316.81
5.5.330.0180.03817.93
5.5.320.0190.03618.02
5.5.310.0220.04417.99
5.5.300.0050.02716.76
5.5.290.0110.02116.88
5.5.280.0070.04418.13
5.5.270.0150.03818.25
5.5.260.0000.03318.04
5.5.250.0060.02917.90
5.5.240.0240.03517.92
5.5.230.0120.01215.31
5.5.220.0080.01315.50
5.5.210.0120.00615.50
5.5.200.0100.01015.45
5.5.190.0070.02015.59
5.5.180.0040.01515.46
5.5.170.0090.01015.55
5.5.160.0110.00715.60
5.5.150.0120.00615.54
5.5.140.0090.01415.36
5.5.130.0160.00515.54
5.5.120.0090.01315.36
5.5.110.0030.01715.51
5.5.100.0170.00715.44
5.5.90.0070.01515.44
5.5.80.0140.00815.22
5.5.70.0080.01115.49
5.5.60.0030.01915.33
5.5.50.0110.01115.46
5.5.40.0100.01715.49
5.5.30.0040.02115.41
5.5.20.0120.01515.47
5.5.10.0160.01615.72
5.5.00.0100.01315.45
5.4.450.0790.03516.91
5.4.440.0650.03016.89
5.4.430.0650.03016.92
5.4.420.0630.04516.95
5.4.410.0390.02616.96
5.4.400.0570.02116.91
5.4.390.0410.02116.65
5.4.380.0370.03216.57
5.4.370.0540.03316.63
5.4.360.0570.03016.66
5.4.350.0470.03916.67
5.4.340.0400.04016.60
5.4.330.0180.02512.56
5.4.320.0650.03516.74
5.4.310.0280.04116.66
5.4.300.0580.02316.70
5.4.290.0590.03516.65
5.4.280.0680.02816.60
5.4.270.0050.03316.66
5.4.260.0350.02716.60
5.4.250.0410.03916.63
5.4.240.0550.03516.63
5.4.230.0470.02916.63
5.4.220.0540.03616.55
5.4.210.0590.02616.62
5.4.200.0650.03116.57
5.4.190.0520.03316.60
5.4.180.0350.04416.67
5.4.170.0450.03716.58
5.4.160.0550.03616.72
5.4.150.0490.04216.67
5.4.140.0460.02916.65
5.4.130.0680.04016.76
5.4.120.0290.04816.65
5.4.110.0590.03816.66
5.4.100.0500.03316.58
5.4.90.0500.02516.71
5.4.80.0450.03216.68
5.4.70.0430.02916.67
5.4.60.0270.05216.52
5.4.50.0210.03016.79
5.4.40.0440.03516.80
5.4.30.0400.02816.67
5.4.20.0540.02916.82
5.4.10.0460.03916.74
5.4.00.0560.03516.82
5.3.290.0560.04016.86
5.3.280.0580.03416.85
5.3.270.0560.03516.89
5.3.260.0540.03616.90
5.3.250.0680.02116.81
5.3.240.0510.04516.82
5.3.230.0400.02416.81
5.3.220.0410.03516.81
5.3.210.0610.05316.79
5.3.200.0540.04416.81
5.3.190.0370.02516.82
5.3.180.0350.03016.83
5.3.170.0440.03116.90
5.3.160.0490.03616.84
5.3.150.0600.03816.90
5.3.140.0520.03116.96
5.3.130.0450.03016.92
5.3.120.0500.03216.90
5.3.110.0480.02316.89
5.3.100.0490.03816.92
5.3.90.0460.03916.97
5.3.80.0390.03416.83
5.3.70.0550.02716.90
5.3.60.0520.03216.96
5.3.50.0360.02116.90
5.3.40.0440.03616.94
5.3.30.0540.03416.98
5.3.20.0440.03516.94
5.3.10.0500.02816.87
5.3.00.0470.04916.80
5.2.170.0350.02016.45
5.2.160.0520.02716.48
5.2.150.0360.02916.45
5.2.140.0360.02916.45
5.2.130.0370.02816.45
5.2.120.0400.02516.45
5.2.110.0420.02716.45
5.2.100.0280.03016.45
5.2.90.0540.03116.46
5.2.80.0340.02516.45
5.2.70.0430.04116.37
5.2.60.0330.02316.32
5.2.50.0380.03516.32
5.2.40.0600.03616.32
5.2.30.0310.02816.32
5.2.20.0210.01816.32
5.2.10.0090.02516.32
5.2.00.0160.02216.32
5.1.60.0270.01516.32
5.1.50.0110.01816.32
5.1.40.0150.02116.32
5.1.30.0240.01716.32
5.1.20.0100.01616.32
5.1.10.0230.02016.32
5.1.00.0200.01916.32
5.0.50.0130.01616.32
5.0.40.0150.01216.32
5.0.30.0170.01416.32
5.0.20.0190.00816.32
5.0.10.0090.01416.32
5.0.00.0140.01716.32
4.4.90.0060.01016.32
4.4.80.0170.01216.32
4.4.70.0090.00716.32
4.4.60.0210.00316.32
4.4.50.0020.01216.32
4.4.40.0070.01816.32
4.4.30.0120.00916.32
4.4.20.0170.01116.32
4.4.10.0050.01016.32
4.4.00.0050.01516.32
4.3.110.0010.00916.32
4.3.100.0050.01216.32
4.3.90.0070.00616.32
4.3.80.0050.01716.32
4.3.70.0080.00816.32
4.3.60.0180.01016.32
4.3.50.0080.01416.32
4.3.40.0070.01616.32
4.3.30.0080.00816.32
4.3.20.0060.00816.32
4.3.10.0080.00816.32
4.3.00.0070.00916.32

preferences:
34.12 ms | 401 KiB | 5 Q