3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_files($path){ $folder = opendir($path); while ($dat = readdir($folder)){ if ($dat != "." && $dat != ".." && (is_dir($path."/".$dat) || substr($dat,-3) == "jpg" || substr($dat,-3) == "gif" || substr($dat,-3) == "bmp" || substr($dat,-3) == "png")){ if (is_dir($path."/".$dat)){ $dirs[] = get_files($path."/".$dat); } else{ $files[] = $path."/".$dat; } } } for ($i=0; $i<sizeof($dirs); $i++){ $files2 = array_merge($files2,$dirs[$i]); } $array = array_merge($files,$files2); return $array; } $path = "http://www.hi-web.ch/"; // Pfad zum Startverzeichnis $amount = sizeof(get_files($path)); for ($i=0; $i < $amount; $i++){ $files = get_files($path); $size += filesize($files[$i]); }

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.0030.01218.84
8.3.30.0040.01118.75
8.3.20.0080.00018.70
8.3.10.0080.00021.08
8.3.00.0090.00023.66
8.2.170.0110.00422.96
8.2.160.0120.00320.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00021.11
8.2.110.0060.00321.02
8.2.100.0000.01118.03
8.2.90.0050.00519.09
8.2.80.0030.00517.97
8.2.70.0000.00817.50
8.2.60.0050.00317.91
8.2.50.0000.00818.10
8.2.40.0000.00820.55
8.2.30.0040.00421.09
8.2.20.0070.00017.57
8.2.10.0040.00417.83
8.2.00.0040.00417.68
8.1.270.0050.00223.99
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0100.00320.72
8.1.230.0040.00720.26
8.1.220.0080.00017.74
8.1.210.0050.00518.77
8.1.200.0060.00317.35
8.1.190.0100.00417.13
8.1.180.0040.00418.10
8.1.170.0060.00318.46
8.1.160.0040.00422.04
8.1.150.0000.00718.59
8.1.140.0000.00717.42
8.1.130.0000.00717.83
8.1.120.0000.00717.41
8.1.110.0000.00817.37
8.1.100.0000.00717.40
8.1.90.0000.01017.35
8.1.80.0000.00717.32
8.1.70.0030.00317.39
8.1.60.0050.00517.56
8.1.50.0000.00717.38
8.1.40.0030.00617.58
8.1.30.0050.00317.49
8.1.20.0020.00517.55
8.1.10.0000.00817.55
8.1.00.0050.00217.57
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0000.00718.46
8.0.270.0030.00317.34
8.0.260.0030.00316.82
8.0.250.0040.00417.03
8.0.240.0000.00916.99
8.0.230.0040.00416.94
8.0.220.0040.00416.88
8.0.210.0070.00016.88
8.0.200.0030.00317.00
8.0.190.0040.00417.07
8.0.180.0040.00417.00
8.0.170.0000.00817.00
8.0.160.0070.00017.04
8.0.150.0040.00416.97
8.0.140.0040.00416.93
8.0.130.0030.00313.39
8.0.120.0070.00414.24
8.0.110.0050.00514.27
8.0.100.0070.00414.22
8.0.90.0060.00514.25
8.0.80.0070.00714.29
8.0.70.0070.00414.29
8.0.60.0070.00314.24
8.0.50.0070.00414.24
8.0.30.0080.00814.77
8.0.20.0090.00715.01
8.0.10.0090.00214.31
8.0.00.0030.00814.79
7.4.330.0030.00315.11
7.4.320.0030.00316.58
7.4.300.0040.00416.43
7.4.290.0070.00016.63
7.4.280.0100.00016.52
7.4.270.0030.00316.54
7.4.260.0000.00513.28
7.4.250.0050.00514.05
7.4.240.0090.00314.15
7.4.230.0100.00214.06
7.4.220.0090.00714.08
7.4.210.0070.00715.14
7.4.200.0070.00314.08
7.4.190.0080.00214.24
7.4.180.0070.00513.35
7.4.160.0060.00614.15
7.4.150.0080.00614.33
7.4.140.0120.00515.10
7.4.130.0090.00614.50
7.4.120.0090.00414.54
7.4.110.0040.00813.97
7.4.100.0070.00614.17
7.4.90.0070.00614.15
7.4.80.0080.00615.03
7.4.70.0090.00514.50
7.4.60.0080.00514.49
7.4.50.0070.00514.38
7.4.40.0070.00915.62
7.4.30.0080.00814.45
7.4.20.0090.00613.90
7.4.10.0090.00714.12
7.4.00.0080.00714.29
7.3.330.0030.00313.30
7.3.320.0130.00013.29
7.3.310.0070.00314.13
7.3.300.0060.00414.04
7.3.290.0110.00214.07
7.3.280.0080.00614.84
7.3.270.0090.00914.41
7.3.260.0070.00915.81
7.3.250.0080.00714.59
7.3.240.0080.00414.12
7.3.230.0060.00414.11
7.3.220.0050.00313.15
7.3.210.0040.00614.00
7.3.200.0070.00615.06
7.3.190.0080.00514.49
7.3.180.0060.00514.50
7.3.170.0080.00514.48
7.3.160.0090.00514.42
7.3.150.0050.00614.01
7.3.140.0050.00713.99
7.3.130.0090.00414.18
7.3.120.0040.00814.22
7.3.110.0060.00614.19
7.3.100.0050.00714.13
7.3.90.0060.00514.25
7.3.80.0070.00414.15
7.3.70.0060.00414.20
7.3.60.0050.00614.20
7.3.50.0070.00614.22
7.3.40.0060.00614.21
7.3.30.0070.00614.21
7.3.20.0090.00415.73
7.3.10.0070.00615.53
7.3.00.0090.00415.51
7.2.340.0050.00613.23
7.2.330.0090.00514.15
7.2.320.0100.00613.99
7.2.310.0100.00614.52
7.2.300.0080.00614.44
7.2.290.0100.00514.54
7.2.280.0110.00414.00
7.2.270.0080.00813.99
7.2.260.0060.00914.20
7.2.250.0080.00714.25
7.2.240.0110.00314.12
7.2.230.0110.00314.23
7.2.220.0120.00514.20
7.2.210.0070.00814.14
7.2.200.0100.00514.18
7.2.190.0080.00714.22
7.2.180.0100.00714.26
7.2.170.0080.00614.29
7.2.160.0080.00814.28
7.2.150.0070.00815.84
7.2.140.0100.00715.74
7.2.130.0080.00815.82
7.2.120.0080.00615.71
7.2.110.0090.00515.77
7.2.100.0070.00815.79
7.2.90.0090.00715.74
7.2.80.0080.00715.76
7.2.70.0070.00815.85
7.2.60.0090.00515.93
7.2.50.0100.00515.73
7.2.40.0080.00615.70
7.2.30.0080.00815.77
7.2.20.0080.00715.91
7.2.10.0100.00615.86
7.2.00.0100.00516.46
7.1.330.0080.00514.78
7.1.320.0080.00714.78
7.1.310.0100.00414.87
7.1.300.0100.00614.84
7.1.290.0120.00514.71
7.1.280.0080.00514.85
7.1.270.0100.00414.75
7.1.260.0080.00714.77
7.1.250.0100.00414.74
7.1.240.0070.00714.80
7.1.230.0050.00814.80
7.1.220.0110.00814.79
7.1.210.0040.01214.81
7.1.200.0070.00815.04
7.1.190.0100.00414.83
7.1.180.0090.00414.70
7.1.170.0100.00514.77
7.1.160.0100.00414.73
7.1.150.0070.00614.79
7.1.140.0130.00514.75
7.1.130.0090.00414.76
7.1.120.0110.00314.71
7.1.110.0080.00514.84
7.1.100.0090.00614.80
7.1.90.0070.00514.81
7.1.80.0080.00514.88
7.1.70.0070.00615.17
7.1.60.0820.00715.20
7.1.50.0120.00415.17
7.1.40.0070.00714.91
7.1.30.0110.00514.78
7.1.20.0090.00414.73
7.1.10.0050.00814.77
7.1.00.0100.00816.08
7.0.330.0080.00514.54
7.0.320.0090.00414.52
7.0.310.0080.00514.57
7.0.300.0090.00414.52
7.0.290.0090.00414.59
7.0.280.0110.00314.53
7.0.270.0090.00514.52
7.0.260.0090.00414.62
7.0.250.0100.00414.64
7.0.240.0100.00414.49
7.0.230.0080.00514.66
7.0.220.0080.00614.45
7.0.210.0110.00314.58
7.0.200.0070.00714.87
7.0.190.0090.00714.57
7.0.180.0110.00414.46
7.0.170.0060.00714.59
7.0.160.0090.00414.50
7.0.150.0060.00714.47
7.0.140.0080.01715.83
7.0.130.0090.00514.64
7.0.120.0070.00614.64
7.0.110.0080.00514.54
7.0.100.0070.00514.55
7.0.90.0080.00514.55
7.0.80.0080.01315.46
7.0.70.0110.01315.43
7.0.60.0180.01615.42
7.0.50.0150.01415.48
7.0.40.0060.01415.18
7.0.30.0100.01615.10
7.0.20.0120.01515.12
7.0.10.0110.01415.10
7.0.00.0100.01615.11
5.6.400.0090.00613.50
5.6.390.0080.00713.59
5.6.380.0080.00613.58
5.6.370.0080.00813.70
5.6.360.0080.00513.61
5.6.350.0070.00713.63
5.6.340.0090.00713.76
5.6.330.0100.00413.62
5.6.320.0080.00713.59
5.6.310.0070.00813.58
5.6.300.0100.00513.39
5.6.290.0080.00513.66
5.6.280.0080.01614.74
5.6.270.0080.00513.48
5.6.260.0060.00613.73
5.6.250.0070.00613.65
5.6.240.0070.00713.70
5.6.230.0130.01114.84
5.6.220.0070.01814.82
5.6.210.0090.01814.85
5.6.200.0080.01614.96
5.6.190.0100.01314.97
5.6.180.0060.01514.96
5.6.170.0090.01114.91
5.6.160.0060.02115.00
5.6.150.0080.01914.91
5.6.140.0080.01814.87
5.6.130.0100.01514.82
5.6.120.0050.01414.95
5.6.110.0090.01714.77
5.6.100.0080.01114.80
5.6.90.0080.01614.82
5.6.80.0090.01714.75
5.6.70.0070.01314.72
5.6.60.0070.01814.66
5.6.50.0060.01514.54
5.6.40.0080.01814.74
5.6.30.0060.01214.68
5.6.20.0070.01514.77
5.6.10.0100.01214.67
5.6.00.0090.00914.65
5.5.380.0090.00313.48
5.5.370.0050.02014.70
5.5.360.0110.01714.66
5.5.350.0080.01414.56
5.5.340.0060.02114.74
5.5.330.0050.01714.70
5.5.320.0090.01514.64
5.5.310.0080.01914.69
5.5.300.0080.02014.78
5.5.290.0080.01914.56
5.5.280.0090.01414.65
5.5.270.0110.01214.70
5.5.260.0060.02014.71
5.5.250.0080.01814.71
5.5.240.0080.01314.62
5.5.230.0070.02014.58
5.5.220.0080.01814.55
5.5.210.0100.01614.58
5.5.200.0080.01714.55
5.5.190.0080.01314.57
5.5.180.0100.01614.57
5.5.170.0100.00513.47
5.5.160.0060.01314.63
5.5.150.0110.01114.50
5.5.140.0100.01214.44
5.5.130.0080.01614.62
5.5.120.0080.01514.52
5.5.110.0070.01514.61
5.5.100.0070.01814.53
5.5.90.0090.01414.57
5.5.80.0070.01714.53
5.5.70.0060.01314.66
5.5.60.0070.01114.52
5.5.50.0100.01514.53
5.5.40.0130.01214.58
5.5.30.0110.01814.61
5.5.20.0080.01514.60
5.5.10.0080.01114.63
5.5.00.0100.01514.63
5.4.450.0080.01813.79
5.4.440.0080.01713.80
5.4.430.0090.01013.79
5.4.420.0090.01513.88
5.4.410.0080.01513.79
5.4.400.0080.01613.70
5.4.390.0090.01213.75
5.4.380.0060.01613.70
5.4.370.0070.01413.65
5.4.360.0060.01413.73
5.4.350.0050.01213.77
5.4.340.0040.01313.72
5.4.330.0060.00712.66
5.4.320.0090.00913.82
5.4.310.0080.01013.68
5.4.300.0070.01513.72
5.4.290.0080.01213.71
5.4.280.0060.01613.75
5.4.270.0060.01013.76
5.4.260.0030.01713.83
5.4.250.0070.01313.60
5.4.240.0090.01113.74
5.4.230.0070.01113.66
5.4.220.0040.01913.65
5.4.210.0090.01213.56
5.4.200.0110.01113.66
5.4.190.0110.01113.71
5.4.180.0100.00913.62
5.4.170.0080.01813.75
5.4.160.0080.01313.75
5.4.150.0080.01813.65
5.4.140.0080.01113.44
5.4.130.0070.01513.34
5.4.120.0070.01413.31
5.4.110.0060.01213.36
5.4.100.0060.01713.36
5.4.90.0090.01313.34
5.4.80.0090.01413.32
5.4.70.0080.01213.38
5.4.60.0080.01613.36
5.4.50.0060.01413.29
5.4.40.0070.01513.40
5.4.30.0050.01213.41
5.4.20.0060.01413.35
5.4.10.0080.01413.32
5.4.00.0050.01713.09
5.3.290.0070.01413.48
5.3.280.0080.01813.40
5.3.270.0100.01713.33
5.3.260.0090.01713.47
5.3.250.0060.01513.44
5.3.240.0080.01913.36
5.3.230.0070.01413.26
5.3.220.0090.01813.24
5.3.210.0100.01613.24
5.3.200.0060.01913.25
5.3.190.0090.01613.40
5.3.180.0060.02013.44
5.3.170.0110.01413.44
5.3.160.0090.01213.42
5.3.150.0100.01713.39
5.3.140.0070.02013.38
5.3.130.0110.02113.30
5.3.120.0060.01913.41
5.3.110.0050.01613.29
5.3.100.0060.01413.27
5.3.90.0070.01713.36
5.3.80.0070.01213.18
5.3.70.0110.01713.19
5.3.60.0110.01313.26
5.3.50.0080.02113.22
5.3.40.0070.01913.27
5.3.30.0060.02113.27
5.3.20.0050.02113.20
5.3.10.0050.01913.17
5.3.00.0070.01713.00
5.2.170.0060.01611.96
5.2.160.0050.01411.91
5.2.150.0050.01211.90
5.2.140.0080.01511.89
5.2.130.0070.01211.91
5.2.120.0040.01611.93
5.2.110.0030.02011.90
5.2.100.0090.01811.94
5.2.90.0060.01411.84
5.2.80.0070.01411.84
5.2.70.0060.01511.88
5.2.60.0060.01011.78
5.2.50.0080.01511.84
5.2.40.0050.01311.96
5.2.30.0050.01611.90
5.2.20.0130.01211.73
5.2.10.0050.01611.73
5.2.00.0060.01011.72
5.1.60.0050.01311.22
5.1.50.0060.01111.31
5.1.40.0050.01211.33
5.1.30.0050.01111.34
5.1.20.0030.01611.30
5.1.10.0070.00711.35
5.1.00.0050.01211.27
5.0.50.0050.01110.98
5.0.40.0060.01110.98
5.0.30.0050.01310.98
5.0.20.0050.01010.99
5.0.10.0030.01210.99
5.0.00.0050.01410.99
4.4.90.0030.00910.98
4.4.80.0050.00510.98
4.4.70.0070.00610.98
4.4.60.0020.01010.98
4.4.50.0020.00910.98
4.4.40.0020.00710.98
4.4.30.0030.00610.98
4.4.20.0050.00810.98
4.4.10.0010.01010.98
4.4.00.0030.01110.98
4.3.110.0040.00610.98
4.3.100.0020.00810.98
4.3.90.0030.00710.99
4.3.80.0020.00810.99
4.3.70.0010.00910.99
4.3.60.0080.00710.99
4.3.50.0030.00910.99
4.3.40.0020.01110.99
4.3.30.0020.00910.99
4.3.20.0020.00910.99
4.3.10.0020.01010.99
4.3.00.0010.00610.99

preferences:
59.68 ms | 400 KiB | 5 Q