3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Update manifest generator for Chrome * * @category [cv-pls] * @package Chrome * @author Chris Wright <info@daverandom.com> */ class ChromeUpdateManifestGenerator { /** * @var string Namespace URL for manifest XML */ private $nsUrl = 'http://www.google.com/update2/response'; /** * Generate the update manifest document * * @param string $appId * @param string $version * @param string $packageUrl * @return \DOMDocument */ public function generate($appId, $version, $packageUrl) { $document = new \DOMDocument('1.0', 'utf-8'); $document->formatOutput = true; $rootEl = $document->createElementNS($this->nsUrl, 'gupdate'); $rootEl->setAttribute('protocol', '2.0'); $document->appendChild($rootEl); $appEl = $document->createElementNS($this->nsUrl, 'app'); $appEl->setAttribute('appid', $appId); $rootEl->appendChild($appEl); $updateCheckEl = $document->createElementNS($this->nsUrl, 'updatecheck'); $updateCheckEl->setAttribute('codebase', $packageUrl); $updateCheckEl->setAttribute('version', $version); $appEl->appendChild($updateCheckEl); return $document; } } $obj = new ChromeUpdateManifestGenerator; echo $obj->generate('abcdef', '1.2.3.4', 'http://foo.com/')->saveXML();

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.00318.55
8.3.50.0140.00721.33
8.3.40.0060.00919.02
8.3.30.0070.00720.45
8.3.20.0070.00020.59
8.3.10.0040.00422.14
8.3.00.0040.00422.50
8.2.180.0070.00717.00
8.2.170.0150.00022.96
8.2.160.0070.00722.33
8.2.150.0090.00024.18
8.2.140.0090.00624.66
8.2.130.0050.00326.16
8.2.120.0040.00421.21
8.2.110.0040.00422.23
8.2.100.0040.00818.03
8.2.90.0080.00019.34
8.2.80.0070.00019.49
8.2.70.0050.00317.63
8.2.60.0100.00318.05
8.2.50.0060.00318.07
8.2.40.0040.00418.32
8.2.30.0090.00019.61
8.2.20.0040.00417.75
8.2.10.0000.00717.71
8.2.00.0000.00717.76
8.1.280.0060.01125.92
8.1.270.0040.00423.99
8.1.260.0120.00626.35
8.1.250.0070.00028.09
8.1.240.0060.00324.08
8.1.230.0080.00419.27
8.1.220.0000.00817.78
8.1.210.0050.00318.77
8.1.200.0030.00617.61
8.1.190.0050.00317.63
8.1.180.0040.00419.14
8.1.170.0040.00418.53
8.1.160.0000.00720.78
8.1.150.0030.00518.66
8.1.140.0000.00717.59
8.1.130.0000.00718.00
8.1.120.0030.00417.52
8.1.110.0040.00417.52
8.1.100.0040.00417.61
8.1.90.0000.00817.64
8.1.80.0030.00317.52
8.1.70.0030.00317.63
8.1.60.0030.00617.85
8.1.50.0040.00417.63
8.1.40.0040.00417.62
8.1.30.0020.00517.71
8.1.20.0040.00417.82
8.1.10.0080.00017.77
8.1.00.0000.00817.59
8.0.300.0050.00218.77
8.0.290.0000.00717.43
8.0.280.0040.00418.57
8.0.270.0030.00317.47
8.0.260.0030.00316.99
8.0.250.0030.00317.18
8.0.240.0060.00317.04
8.0.230.0030.00317.13
8.0.220.0000.00716.92
8.0.210.0030.00316.99
8.0.200.0000.00617.09
8.0.190.0030.00517.15
8.0.180.0000.00717.06
8.0.170.0030.00517.00
8.0.160.0070.00016.96
8.0.150.0040.00416.90
8.0.140.0040.00417.04
8.0.130.0070.00013.54
8.0.120.0000.00816.89
8.0.110.0030.00517.08
8.0.100.0020.00517.00
8.0.90.0000.00816.95
8.0.80.0030.01217.07
8.0.70.0040.00417.11
8.0.60.0040.00416.89
8.0.50.0000.00716.88
8.0.30.0100.00817.47
8.0.20.0070.01517.40
8.0.10.0000.00717.05
8.0.00.0080.01316.94
7.4.330.0000.00515.00
7.4.320.0030.00316.85
7.4.300.0000.00716.66
7.4.290.0030.00316.71
7.4.280.0070.00016.84
7.4.270.0070.00316.84
7.4.260.0000.00713.60
7.4.250.0000.00716.66
7.4.240.0010.00716.77
7.4.230.0030.00316.84
7.4.220.0060.01216.84
7.4.210.0060.01016.80
7.4.200.0040.00416.76
7.4.190.0050.00316.64
7.4.160.0070.01016.82
7.4.150.0060.01117.40
7.4.140.0060.01117.86
7.4.130.0130.00416.71
7.4.120.0040.01416.62
7.4.110.0070.01016.79
7.4.100.0070.01616.84
7.4.90.0060.01316.83
7.4.80.0100.01019.39
7.4.70.0110.00616.80
7.4.60.0110.00716.83
7.4.50.0000.00816.75
7.4.40.0120.00622.77
7.4.30.0110.01116.73
7.4.00.0030.01315.29
7.3.330.0000.00613.48
7.3.320.0000.00513.47
7.3.310.0000.00716.52
7.3.300.0030.00316.53
7.3.290.0060.01316.55
7.3.280.0060.01016.52
7.3.270.0060.01017.40
7.3.260.0120.00616.61
7.3.250.0090.00916.59
7.3.240.0060.01616.77
7.3.230.0120.01216.53
7.3.210.0180.00416.77
7.3.200.0120.00619.39
7.3.190.0150.00316.72
7.3.180.0060.01116.37
7.3.170.0060.01016.50
7.3.160.0090.00916.64
7.3.120.0060.00915.06
7.2.330.0070.01116.86
7.2.320.0060.01216.56
7.2.310.0090.01516.97
7.2.300.0100.00716.59
7.2.290.0080.00816.70
7.2.60.0110.00016.86
7.2.00.0030.01019.51
7.1.200.0040.00815.91
7.1.100.0030.01017.91
7.1.70.0060.00317.22
7.1.60.0070.00717.19
7.1.50.0130.00716.93
7.1.00.0000.03722.39
7.0.200.0070.00017.00
7.0.140.0030.07022.00
7.0.120.0000.05722.21
7.0.110.0030.04722.16
7.0.100.0000.04722.18
7.0.90.0100.06722.10
7.0.80.0000.03722.22
7.0.70.0000.07322.18
7.0.60.0130.06322.12
7.0.50.0070.06722.13
7.0.40.0030.07022.20
7.0.30.0030.07722.12
7.0.20.0070.05722.10
7.0.10.0030.06022.18
7.0.00.0030.06722.18
5.6.280.0070.06321.17
5.6.260.0000.05721.16
5.6.250.0070.04321.21
5.6.240.0070.05321.04
5.6.230.0000.06721.13
5.6.220.0000.07721.04
5.6.210.0000.06020.85
5.6.200.0000.08021.02
5.6.190.0070.06720.95
5.6.180.0100.06721.13
5.6.170.0000.04020.97
5.6.160.0000.06721.13
5.6.150.0070.03321.17
5.6.140.0000.04720.97
5.6.130.0000.05321.05
5.6.120.0000.04721.05
5.6.110.0000.07320.96
5.6.100.0070.07321.11
5.6.90.0030.06020.78
5.6.80.0000.06320.37
5.6.70.0000.07320.33
5.6.60.0030.06720.32
5.6.50.0070.04320.18
5.6.40.0030.04720.44
5.6.30.0000.07720.49
5.6.20.0070.03720.48
5.6.10.0030.06720.15
5.6.00.0000.05720.26
5.5.380.0030.06717.58
5.5.370.0030.05317.63
5.5.360.0030.05717.76
5.5.350.0000.07317.67
5.5.340.0030.07018.03
5.5.330.0030.07318.03
5.5.320.0000.06018.15
5.5.310.0000.05018.00
5.5.300.0000.03318.16
5.5.290.0000.07318.29
5.5.280.0070.05318.00
5.5.270.0030.07018.29
5.5.260.0030.07318.19
5.5.250.0000.07317.71
5.5.240.0000.07317.55
5.5.230.0000.07017.52
5.5.220.0070.07017.57
5.5.210.0000.07017.37
5.5.200.0070.05317.65
5.5.190.0030.07717.46
5.5.180.0000.05717.25
5.5.160.0030.03317.32
5.5.150.0030.05717.21
5.5.140.0000.05017.49
5.5.130.0030.04017.48
5.5.120.0070.04717.32
5.5.110.0000.07017.46
5.5.100.0000.07017.43
5.5.90.0000.04017.15
5.5.80.0100.05017.45
5.5.70.0070.06717.22
5.5.60.0030.06317.40
5.5.50.0030.06017.43
5.5.40.0030.06717.14
5.5.30.0000.05317.54
5.5.20.0070.06017.45
5.5.10.0000.07317.38
5.5.00.0000.07317.43
5.4.450.0030.07019.64
5.4.440.0100.03719.63
5.4.430.0070.06719.63
5.4.420.0030.05719.36
5.4.410.0070.06719.28
5.4.400.0030.06719.31
5.4.390.0000.06719.15
5.4.380.0030.05319.25
5.4.370.0000.06719.30
5.4.360.0000.05019.25
5.4.350.0070.05719.29
5.4.340.0000.07319.35
5.4.320.0000.05019.07
5.4.310.0030.03719.39
5.4.300.0000.06019.09
5.4.290.0000.03719.15
5.4.280.0000.06019.04
5.4.270.0030.05319.24
5.4.260.0000.05019.30
5.4.250.0000.05019.22
5.4.240.0100.05719.07
5.4.230.0000.07019.39
5.4.220.0000.06319.30
5.4.210.0030.05719.15
5.4.200.0000.06719.37
5.4.190.0100.06019.00
5.4.180.0030.06319.29
5.4.170.0000.07019.27
5.4.160.0070.06319.22
5.4.150.0070.07319.18
5.4.140.0000.04316.43
5.4.130.0000.03316.70
5.4.120.0030.06316.43
5.4.110.0100.05316.62
5.4.100.0000.06716.43
5.4.90.0070.05716.61
5.4.80.0030.04716.65
5.4.70.0070.05316.60
5.4.60.0070.04016.44
5.4.50.0000.03016.46
5.4.40.0030.04316.58
5.4.30.0030.03716.44
5.4.20.0070.04716.29
5.4.10.0030.06316.50
5.4.00.0030.06316.05
5.3.290.0000.05314.78
5.3.280.0030.05714.76
5.3.270.0000.07014.73
5.3.260.0000.07014.70
5.3.250.0070.05014.91
5.3.240.0030.05014.68
5.3.230.0000.03014.75
5.3.220.0030.06014.65
5.3.210.0100.05714.68
5.3.200.0000.06014.60
5.3.190.0070.04714.65
5.3.180.0070.06014.63
5.3.170.0000.06014.79
5.3.160.0000.03714.72
5.3.150.0000.03714.65
5.3.140.0000.05314.65
5.3.130.0070.06714.63
5.3.120.0070.06014.66
5.3.110.0000.07014.63
5.3.100.0030.06014.19
5.3.90.0030.06314.10
5.3.80.0030.06314.13
5.3.70.0000.07014.04
5.3.60.0000.05714.15
5.3.50.0000.04714.01
5.3.40.0000.06714.10
5.3.30.0000.06714.02
5.3.20.0030.05713.79
5.3.10.0030.06013.96
5.3.00.0030.06313.74
5.2.170.0030.04011.23
5.2.160.0000.05311.20
5.2.150.0000.05711.21
5.2.140.0000.05711.25
5.2.130.0000.05711.18
5.2.120.0070.05011.20
5.2.110.0030.05311.19
5.2.100.0030.04011.21
5.2.90.0030.05011.30
5.2.80.0000.06011.21
5.2.70.0070.05011.18
5.2.60.0030.05311.13
5.2.50.0070.04311.10
5.2.40.0030.04711.15
5.2.30.0030.05311.08
5.2.20.0030.05311.04
5.2.10.0000.05710.99
5.2.00.0030.05310.88
5.1.60.0030.03710.25
5.1.50.0030.04710.13
5.1.40.0070.04010.14
5.1.30.0030.04010.46
5.1.20.0030.05010.49
5.1.10.0000.05010.20
5.1.00.0030.04010.32
5.0.50.0000.0339.79
5.0.40.0030.0379.79
5.0.30.0030.0439.79
5.0.20.0000.0339.79
5.0.10.0030.0339.79
5.0.00.0030.0379.79
4.4.90.0000.0239.79
4.4.80.0030.0209.79
4.4.70.0070.0209.79
4.4.60.0000.0339.79
4.4.50.0000.0279.79
4.4.40.0030.0439.79
4.4.30.0000.0309.79
4.4.20.0000.0309.79
4.4.10.0000.0239.79
4.4.00.0000.0439.79
4.3.110.0000.0309.79
4.3.100.0030.0179.79
4.3.90.0000.0309.79
4.3.80.0000.0439.79
4.3.70.0000.0279.79
4.3.60.0000.0239.79
4.3.50.0000.0309.79
4.3.40.0000.0479.79
4.3.30.0070.0209.79
4.3.20.0000.0279.79
4.3.10.0030.0209.79
4.3.00.0000.0279.79

preferences:
36.08 ms | 401 KiB | 5 Q