3v4l.org

run code in 300+ PHP versions simultaneously
<?php function tempdir($dir=false,$prefix='php') { $tempfile = tempnam(sys_get_temp_dir(),''); if (file_exists($tempfile)) { unlink($tempfile); } mkdir($tempfile); if (is_dir($tempfile)) { return $tempfile; } } function getFileCount($path) { $size = 0; $files = scandir($path); foreach($files as $t) { if ($t[0] == '.') { continue; } $name = rtrim($path, '/') . '/' . $t; if (is_dir($name)) { $size += getFileCount(rtrim($path, '/') . '/' . $t); } else { $size++; unlink($name); } } return $size; } $directory = dirname(__FILE__)."/tgz"; $iterator = new DirectoryIterator($directory); $files = array(); foreach ($iterator as $fileinfo) { if ($fileinfo->isFile()) { $files[$fileinfo->getPathname()] = $fileinfo->getFilename(); } } ksort($files); foreach ($files as $path => $file) { $p = new PharData($path); $tmpdir = tempdir(); $p->extractTo($tmpdir); var_dump($file); var_dump(getFileCount($tmpdir)); rmdir($tmpdir); }

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.00718.45
8.3.50.0060.01218.15
8.3.40.0090.00618.97
8.3.30.0110.00419.21
8.3.20.0040.00420.25
8.3.10.0040.00420.61
8.3.00.0090.00017.77
8.2.180.0130.00316.88
8.2.170.0150.00422.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00422.09
8.2.110.0060.00320.48
8.2.100.0040.00817.97
8.2.90.0080.00019.17
8.2.80.0030.00617.97
8.2.70.0000.00917.63
8.2.60.0040.00417.78
8.2.50.0040.00418.07
8.2.40.0040.00418.08
8.2.30.0050.00319.20
8.2.20.0040.00417.79
8.2.10.0050.00318.15
8.2.00.0000.00817.78
8.1.270.0030.00623.95
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00623.98
8.1.230.0000.01119.14
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0030.00717.35
8.1.190.0040.00417.25
8.1.180.0000.00918.10
8.1.170.0040.00418.61
8.1.160.0040.00421.98
8.1.150.0040.00418.94
8.1.140.0040.00417.38
8.1.130.0030.00317.87
8.1.120.0040.00417.38
8.1.110.0040.00417.48
8.1.100.0000.00717.43
8.1.90.0030.00517.52
8.1.80.0000.00817.52
8.1.70.0030.00317.33
8.1.60.0030.00517.52
8.1.50.0060.00317.45
8.1.40.0020.00517.48
8.1.30.0050.00317.70
8.1.20.0040.00417.74
8.1.10.0050.00217.66
8.1.00.0070.00017.57
8.0.300.0060.00318.77
8.0.290.0030.00616.75
8.0.280.0030.00318.46
8.0.270.0000.00717.23
8.0.260.0030.00317.32
8.0.250.0050.00317.06
8.0.240.0030.00517.08
8.0.230.0000.00717.06
8.0.220.0030.00317.00
8.0.210.0030.00317.00
8.0.200.0040.00417.02
8.0.190.0000.00716.94
8.0.180.0000.00716.91
8.0.170.0040.00417.05
8.0.160.0040.00316.98
8.0.150.0070.00016.89
8.0.140.0000.00816.88
8.0.130.0030.00313.41
8.0.120.0030.00514.58
8.0.110.0060.00314.54
8.0.100.0050.00514.54
8.0.90.0080.00314.56
8.0.80.0060.00614.63
8.0.70.0070.00214.54
8.0.60.0060.00314.48
8.0.50.0030.00514.51
8.0.30.0070.00715.20
8.0.20.0070.00815.42
8.0.10.0080.00114.68
8.0.00.0050.00715.09
7.4.330.0000.00515.13
7.4.320.0000.00616.48
7.4.300.0030.00316.45
7.4.290.0070.00016.65
7.4.280.0070.00016.55
7.4.270.0000.00816.63
7.4.260.0030.00316.63
7.4.250.0070.00214.41
7.4.240.0050.00414.96
7.4.230.0080.00214.34
7.4.220.0080.00414.45
7.4.210.0060.00514.39
7.4.200.0070.00114.46
7.4.190.0090.00013.32
7.4.180.0050.00513.36
7.4.160.0060.00414.41
7.4.150.0060.00514.62
7.4.140.0080.00615.56
7.4.130.0080.00614.95
7.4.120.0080.00614.87
7.4.110.0100.00214.37
7.4.100.0080.00614.40
7.4.90.0060.00714.28
7.4.80.0100.00514.38
7.4.70.0080.00414.33
7.4.60.0110.00114.37
7.4.50.0060.00314.25
7.4.40.0080.00414.33
7.4.30.0050.00714.36
7.4.20.0030.00713.23
7.4.10.0070.00213.26
7.4.00.0070.00413.89
7.3.330.0000.00613.41
7.3.320.0030.00313.36
7.3.310.0060.00314.22
7.3.300.0030.00414.27
7.3.290.0060.00514.30
7.3.280.0050.00915.08
7.3.270.0070.00614.63
7.3.260.0080.00514.21
7.3.250.0050.00914.85
7.3.240.0070.00514.30
7.3.230.0070.00614.34
7.3.220.0080.00213.31
7.3.210.0090.00314.28
7.3.200.0120.00015.28
7.3.190.0070.00614.22
7.3.180.0080.00414.30
7.3.170.0050.00714.29
7.3.160.0080.00414.19
7.3.150.0040.00513.29
7.3.140.0040.00613.33
7.3.130.0050.00413.33
7.3.120.0000.00913.21
7.3.110.0030.00613.13
7.3.100.0090.00213.19
7.3.90.0030.00613.40
7.3.80.0090.00013.23
7.3.70.0070.00313.31
7.3.60.0080.00213.43
7.3.50.0060.00313.36
7.3.40.0040.00513.36
7.3.30.0030.00613.47
7.3.20.0080.00215.05
7.3.10.0000.00915.08
7.3.00.0110.00115.64
7.2.340.0100.00213.12
7.2.330.0110.00414.28
7.2.320.0100.00414.42
7.2.310.0080.00714.24
7.2.300.0060.00914.29
7.2.290.0110.00314.24
7.2.280.0040.00813.24
7.2.270.0080.00413.04
7.2.260.0090.00313.27
7.2.250.0050.00713.26
7.2.240.0120.00113.20
7.2.230.0090.00413.11
7.2.220.0080.00413.11
7.2.210.0120.00113.17
7.2.200.0100.00313.47
7.2.190.0090.00413.21
7.2.180.0100.00313.37
7.2.170.0080.00413.35
7.2.160.0070.00513.50
7.2.150.0090.00415.08
7.2.140.0070.00515.14
7.2.130.0090.00515.70
7.2.120.0070.00615.75
7.2.110.0110.00115.67
7.2.100.0070.00515.68
7.2.90.0060.00715.66
7.2.80.0050.00715.74
7.2.70.0060.00615.64
7.2.60.0080.00515.95
7.2.50.0070.00715.77
7.2.40.0080.00415.75
7.2.30.0050.00915.59
7.2.20.0100.00315.83
7.2.10.0090.00515.77
7.2.00.0080.00616.62
7.1.330.0040.00814.13
7.1.320.0040.00814.27
7.1.310.0100.00214.18
7.1.300.0080.00414.25
7.1.290.0070.00514.32
7.1.280.0120.00014.23
7.1.270.0100.00114.12
7.1.260.0050.00614.29
7.1.250.0100.00314.67
7.1.240.0090.00414.76
7.1.230.0050.00614.67
7.1.220.0100.00214.85
7.1.210.0110.00014.66
7.1.200.0070.00714.92
7.1.190.0080.00414.72
7.1.180.0080.00414.72
7.1.170.0090.00514.77
7.1.160.0070.00514.61
7.1.150.0060.00614.64
7.1.140.0110.00314.64
7.1.130.0070.00414.68
7.1.120.0100.00314.74
7.1.110.0080.00314.53
7.1.100.0070.00515.48
7.1.90.0070.00614.63
7.1.80.0090.00314.83
7.1.70.0070.00515.21
7.1.60.0090.00615.84
7.1.50.0090.00615.34
7.1.40.0090.00214.79
7.1.30.0070.00614.72
7.1.20.0090.00314.71
7.1.10.0070.00414.69
7.1.00.0070.02116.63
7.0.330.0080.00314.56
7.0.320.0040.00814.54
7.0.310.0070.00514.62
7.0.300.0090.00314.58
7.0.290.0060.00514.56
7.0.280.0100.00314.44
7.0.270.0070.00314.56
7.0.260.0090.00314.43
7.0.250.0050.00614.67
7.0.240.0060.00514.58
7.0.230.0080.00614.63
7.0.220.0080.00614.59
7.0.210.0090.00214.56
7.0.200.0050.00515.17
7.0.190.0030.00714.54
7.0.180.0050.00614.64
7.0.170.0040.00514.62
7.0.160.0070.00314.45
7.0.150.0070.00514.52
7.0.140.0050.02316.42
7.0.130.0110.00014.62
7.0.120.0050.00714.57
7.0.110.0060.00414.63
7.0.100.0060.00614.65
7.0.90.0090.00314.48
7.0.80.0070.00314.54
7.0.70.0100.00114.52
7.0.60.0070.01515.92
7.0.50.0070.01515.42
7.0.40.0080.01815.47
7.0.30.0120.01315.42
7.0.20.0150.02215.41
7.0.10.0090.01215.52
7.0.00.0060.02615.32
5.6.400.0060.00612.71
5.6.390.0080.00412.67
5.6.380.0100.00313.28
5.6.370.0080.00413.32
5.6.360.0080.00513.21
5.6.350.0080.00513.20
5.6.340.0090.00313.24
5.6.330.0100.00213.20
5.6.320.0080.00413.09
5.6.310.0050.00613.23
5.6.300.0070.00413.25
5.6.290.0070.00513.26
5.6.280.0060.02215.26
5.6.270.0060.00613.26
5.6.260.0070.00513.27
5.6.250.0050.00713.11
5.6.240.0070.00513.27
5.6.230.0050.00713.25
5.6.220.0080.00513.22
5.6.210.0080.01115.08
5.6.200.0070.02314.55
5.6.190.0070.01415.11
5.6.180.1010.01715.08
5.6.170.0100.02114.99
5.6.160.0070.02515.06
5.6.150.0050.01514.52
5.6.140.0050.02014.44
5.6.130.0070.02514.42
5.6.120.0030.02915.18
5.6.110.0070.02515.11
5.6.100.0070.01915.17
5.6.90.0040.01915.22
5.6.80.0060.02015.11
5.6.70.1170.01415.00
5.6.60.0100.00213.20
5.6.50.0080.00313.09
5.6.40.0090.00313.29
5.6.30.0070.00613.14
5.6.20.0080.00413.08
5.6.10.0090.00213.21
5.6.00.0060.00613.03
5.5.380.0060.00412.24
5.5.370.0090.00112.09
5.5.360.0060.00312.14
5.5.350.0050.02414.08
5.5.340.0070.01113.46
5.5.330.0090.01514.15
5.5.320.0120.02314.28
5.5.310.0080.01614.10
5.5.300.0040.02613.62
5.5.290.0090.01813.49
5.5.280.0090.01214.38
5.5.270.0080.02214.27
5.5.260.0120.02214.24
5.5.250.0100.01014.27
5.5.240.0140.01814.14
5.5.230.0060.00512.10
5.5.220.0080.00112.20
5.5.210.0070.00312.19
5.5.200.0070.00412.15
5.5.190.0070.00312.07
5.5.180.0080.00311.98
5.5.170.0080.00412.10
5.5.160.0070.00412.22
5.5.150.0070.00412.12
5.5.140.0090.00312.06
5.5.130.0070.00411.88
5.5.120.0080.00211.99
5.5.110.0050.00511.95
5.5.100.0060.00512.09
5.5.90.0090.00212.11
5.5.80.0080.00312.12
5.5.70.0050.00512.10
5.5.60.0060.00312.15
5.5.50.0080.00112.06
5.5.40.0080.00212.09
5.5.30.0070.00412.05
5.5.20.0030.00512.10
5.5.10.0030.00712.04
5.5.00.0060.00512.12
5.4.450.0120.01714.00
5.4.440.0270.01914.01
5.4.430.0220.01713.88
5.4.420.0270.01614.00
5.4.410.0070.01613.77
5.4.400.0230.01613.85
5.4.390.0250.01613.86
5.4.380.0080.02113.65
5.4.370.0170.01713.77
5.4.360.0150.01413.75
5.4.350.0120.01813.74
5.4.340.0130.01413.68
5.4.330.0070.00411.93
5.4.320.0070.01012.16
5.4.310.0060.01312.11
5.4.300.0090.01012.17
5.4.290.0070.01112.29
5.4.280.0070.01312.22
5.4.270.0070.01212.14
5.4.260.0060.01112.16
5.4.250.0080.01012.10
5.4.240.0060.01212.12
5.4.230.0070.01312.09
5.4.220.0050.01511.98
5.4.210.0050.01312.00
5.4.200.0080.01012.12
5.4.190.0050.01412.11
5.4.180.0080.01111.94
5.4.170.0090.00911.99
5.4.160.0060.01112.01
5.4.150.0070.01111.98
5.4.140.0050.01412.10
5.4.130.0030.01612.10
5.4.120.0060.01211.98
5.4.110.0050.01312.04
5.4.100.0050.01312.08
5.4.90.0040.01412.03
5.4.80.0060.01312.11
5.4.70.0050.01312.03
5.4.60.0030.01512.03
5.4.50.0080.01112.06
5.4.40.0080.01012.09
5.4.30.0070.01212.02
5.4.20.0060.01212.08
5.4.10.0060.01212.08
5.4.00.0050.01511.87
5.3.290.0050.01512.36
5.3.280.0070.01212.22
5.3.270.0070.01312.21
5.3.260.0060.01312.22
5.3.250.0050.01312.27
5.3.240.0060.01212.07
5.3.230.0070.01212.19
5.3.220.0070.01212.21
5.3.210.0050.01312.13
5.3.200.0030.01412.19
5.3.190.0070.01512.21
5.3.180.0060.01312.38
5.3.170.0040.01312.46
5.3.160.0080.01012.46
5.3.150.0060.01312.40
5.3.140.0040.01312.21
5.3.130.0060.01312.22
5.3.120.0060.01712.27
5.3.110.0070.01312.26
5.3.100.0070.01212.16
5.3.90.0050.01312.23
5.3.80.0050.01312.09
5.3.70.0050.01211.98
5.3.60.0050.01312.20
5.3.50.0070.01112.09
5.3.40.0050.01212.05
5.3.30.0070.01012.14
5.3.20.0060.01212.09
5.3.10.0040.01411.94
5.3.00.0050.01211.83
5.2.170.0050.01010.77
5.2.160.0050.01010.79
5.2.150.0050.01010.73
5.2.140.0030.01210.74
5.2.130.0050.00910.83
5.2.120.0040.01110.78
5.2.110.0070.00710.81
5.2.100.0040.01010.78
5.2.90.0030.01210.76
5.2.80.0030.01110.72
5.2.70.0060.01010.73
5.2.60.0060.01010.64
5.2.50.0040.01210.74
5.2.40.0060.00910.77
5.2.30.0020.01310.67
5.2.20.0040.01010.54
5.2.10.0050.01010.53
5.2.00.0050.01010.56
5.1.60.0040.0099.92
5.1.50.0040.00910.01
5.1.40.0050.00810.04
5.1.30.0040.00910.21
5.1.20.0040.00910.17
5.1.10.0040.0099.97
5.1.00.0050.00810.02
5.0.50.0040.0079.30
5.0.40.0030.0089.26
5.0.30.0030.0109.22
5.0.20.0040.0069.21
5.0.10.0040.0079.20
5.0.00.0030.0109.20
4.4.90.0030.0068.83
4.4.80.0040.0048.82
4.4.70.0030.0058.82
4.4.60.0020.0058.82
4.4.50.0010.0068.82
4.4.40.0030.0088.81
4.4.30.0030.0058.82
4.4.20.0020.0058.84
4.4.10.0020.0068.84
4.4.00.0030.0088.82
4.3.110.0020.0068.80
4.3.100.0010.0078.79
4.3.90.0030.0058.79
4.3.80.0030.0078.78
4.3.70.0020.0068.79
4.3.60.0030.0058.79
4.3.50.0030.0058.79
4.3.40.0020.0088.76
4.3.30.0010.0078.46
4.3.20.0040.0048.45
4.3.10.0020.0058.44
4.3.00.0040.0079.52

preferences:
42.29 ms | 400 KiB | 5 Q