3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Request {//TODO testing code REMOVE //class Request extends \Connection\OTA\Request { /** * @param \Car\CarSearchParams $parameters */ public function build () {//TODO testing code REMOVE // public function build (\Car\CarSearchParams $parameters) { $dom = new DOMDocument('1.0', 'utf-8'); $rootNode = $dom->createElement('OTA_VehAvailRateRQ'); $rootNode->setAttribute('PrimaryLangID', 'EN'); $rootNode->setAttribute('TimeStamp', 'EN'); $rootNode->setAttribute('Target', 'EN'); $rootNode->setAttribute('Version', 'EN'); $rootNode->setAttribute('TransactionIdentifier', 'EN'); $rootNode->setAttribute('SequenceNmbr', 'EN'); $rootNode->setAttribute('MaxResponses', 'EN'); $this->setAttr($rootNode, array(array("neeeeeeeeeeeew", "coooool"))); // $POSNode = $dom->createElement('POS'); $dom->appendChild($rootNode); return $dom->saveXML(); } protected function setAttr ($node, $attrs){ foreach ($attrs as $key=>$value){ $node->setAttribute($key, $value); } } } //TODO testing code REMOVE $obj = new Request(); echo $obj->build();

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.0100.01018.68
8.3.50.0070.01121.98
8.3.40.0100.01018.83
8.3.30.0140.00019.18
8.3.20.0050.00220.29
8.3.10.0000.00821.67
8.3.00.0000.00819.05
8.2.180.0080.00816.63
8.2.170.0130.00322.96
8.2.160.0030.01022.25
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00417.80
8.2.110.0030.00622.38
8.2.100.0040.00817.97
8.2.90.0050.00319.08
8.2.80.0030.00517.97
8.2.70.0000.00917.88
8.2.60.0000.00917.80
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0080.00018.02
8.2.20.0000.00817.82
8.2.10.0000.00818.14
8.2.00.0040.00417.89
8.1.280.0090.00625.92
8.1.270.0030.00618.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00024.01
8.1.230.0060.00619.29
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0050.00517.35
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0050.00518.41
8.1.160.0040.00422.00
8.1.150.0050.00318.86
8.1.140.0000.00819.31
8.1.130.0040.00417.81
8.1.120.0000.00817.44
8.1.110.0000.00917.53
8.1.100.0000.00717.41
8.1.90.0020.00517.46
8.1.80.0000.00717.45
8.1.70.0080.00017.55
8.1.60.0000.00917.55
8.1.50.0060.00317.61
8.1.40.0000.00817.55
8.1.30.0000.00917.65
8.1.20.0030.00517.73
8.1.10.0040.00417.63
8.1.00.0000.00817.58
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.53
8.0.270.0000.00717.21
8.0.260.0070.00017.19
8.0.250.0030.00317.09
8.0.240.0050.00317.10
8.0.230.0000.00816.96
8.0.220.0030.00317.05
8.0.210.0000.00717.04
8.0.200.0030.00317.07
8.0.190.0000.00816.98
8.0.180.0000.00816.94
8.0.170.0050.00316.99
8.0.160.0070.00016.96
8.0.150.0080.00016.97
8.0.140.0030.00616.88
8.0.130.0040.00213.51
8.0.120.0000.00716.95
8.0.110.0050.00217.06
8.0.100.0070.00016.86
8.0.90.0000.00717.16
8.0.80.0110.01117.00
8.0.70.0000.00717.09
8.0.60.0020.00516.91
8.0.50.0070.00017.10
8.0.30.0130.01417.10
8.0.20.0140.00517.40
8.0.10.0040.00417.21
8.0.00.0110.00816.97
7.4.330.0000.00615.03
7.4.320.0030.00316.69
7.4.300.0030.00316.61
7.4.290.0030.00316.61
7.4.280.0000.00816.76
7.4.270.0030.00316.76
7.4.260.0070.00016.72
7.4.250.0070.00016.64
7.4.240.0050.00216.77
7.4.230.0000.00716.83
7.4.220.0070.01316.86
7.4.210.0090.00616.75
7.4.200.0000.00716.79
7.4.160.0100.00716.86
7.4.150.0100.01017.40
7.4.140.0110.00817.86
7.4.130.0070.01016.75
7.4.120.0120.00616.77
7.4.110.0030.01316.75
7.4.100.0120.00516.69
7.4.90.0160.00016.63
7.4.80.0130.01019.39
7.4.70.0160.00616.78
7.4.60.0100.00616.68
7.4.50.0060.00316.66
7.4.40.0040.01216.85
7.4.30.0090.00916.62
7.4.00.0070.00715.14
7.3.330.0050.00013.60
7.3.320.0000.00513.56
7.3.310.0050.00316.60
7.3.300.0000.00716.61
7.3.290.0120.00416.58
7.3.280.0110.01016.50
7.3.270.0110.00717.40
7.3.260.0090.01216.81
7.3.250.0020.01516.83
7.3.240.0030.01416.62
7.3.230.0090.01416.54
7.3.210.0100.00716.54
7.3.200.0100.01019.39
7.3.190.0100.00716.68
7.3.180.0060.00916.46
7.3.170.0070.01416.76
7.3.160.0100.00616.66
7.2.330.0220.01916.93
7.2.320.0160.00616.94
7.2.310.0060.01816.97
7.2.300.0030.01316.83
7.2.290.0090.01416.88
7.2.00.0030.00919.46
7.1.100.0000.01618.23
7.1.70.0030.00617.23
7.1.60.0110.01419.46
7.1.50.0070.01516.92
7.1.00.0000.08022.64
7.0.200.0000.00817.04
7.0.140.0070.04022.14
7.0.60.0000.04320.08
7.0.50.0100.03718.01
7.0.40.0070.08320.22
7.0.30.0170.04720.22
7.0.20.0230.07720.21
7.0.10.0070.04020.27
7.0.00.0000.06020.30
5.6.280.0070.07021.04
5.6.210.0030.08720.86
5.6.200.0030.06018.36
5.6.190.0170.04320.62
5.6.180.0370.06720.53
5.6.170.0230.08720.58
5.6.160.0100.07020.55
5.6.150.0070.06718.25
5.6.140.0130.06018.27
5.6.130.0100.04018.25
5.6.120.0030.08321.05
5.6.110.0070.08321.10
5.6.100.0130.06321.11
5.6.90.0070.05321.05
5.6.80.0170.06320.43
5.5.350.4000.04320.46
5.5.340.0070.07718.12
5.5.330.0070.05020.62
5.5.320.0000.08020.39
5.5.310.0100.04720.39
5.5.300.0100.06018.11
5.5.290.0030.08318.11
5.5.280.0000.08020.80
5.5.270.0100.08320.94
5.5.260.0100.08320.92
5.5.250.0070.07320.78
5.5.240.0000.08320.17
5.4.450.0500.05719.31
5.4.440.0800.04719.62
5.4.430.0130.05319.66
5.4.420.0030.06319.48
5.4.410.0200.04719.38
5.4.400.0070.05719.16
5.4.390.0230.05718.78
5.4.380.0230.06018.69
5.4.370.0170.05718.88
5.4.360.0330.04318.57
5.4.350.0230.05318.88
5.4.340.0300.04718.82
5.4.320.0230.05718.60
5.4.310.0270.04318.84
5.4.300.0170.06018.86
5.4.290.0200.05318.86
5.4.280.0230.05018.59
5.4.270.0230.05018.70
5.4.260.0130.06318.69
5.4.250.0230.07018.59
5.4.240.0130.06018.87
5.4.230.0270.04718.85
5.4.220.0270.05018.83
5.4.210.0230.05018.84
5.4.200.0230.04716.85
5.4.190.0200.05718.82
5.4.180.0230.05018.76
5.4.170.0200.06018.64
5.4.160.0230.05718.79
5.4.150.0170.05318.85
5.4.140.0200.06016.37
5.4.130.0270.04716.41
5.4.120.0100.06016.53
5.4.110.0300.04316.43
5.4.100.0200.05016.40
5.4.90.0230.04716.29
5.4.80.0230.05016.35
5.4.70.0270.06016.28
5.4.60.0330.04716.26
5.4.50.0270.04316.48
5.4.40.0230.05316.33
5.4.30.0170.05316.25
5.4.20.0200.05016.36
5.4.10.0300.04016.45
5.4.00.0230.05315.81
5.3.290.0200.05714.83
5.3.280.0170.05714.80
5.3.270.0200.07014.68
5.3.260.0170.06314.88
5.3.250.0170.06014.96
5.3.240.0300.05714.85
5.3.230.0100.06714.85
5.3.220.0130.06014.73
5.3.210.0300.05314.64
5.3.200.0270.05014.82
5.3.190.0130.06314.70
5.3.180.0230.05014.82
5.3.170.0270.04714.70
5.3.160.0330.04014.64
5.3.150.0100.06714.67
5.3.140.0200.05014.81
5.3.130.0430.03714.73
5.3.120.0230.05314.73
5.3.110.0330.04014.66
5.3.100.0270.05014.31
5.3.90.0170.06314.38
5.3.80.0200.05014.26
5.3.70.0270.04314.12
5.3.60.0270.04714.25
5.3.50.0100.06014.16
5.3.40.0200.05014.20
5.3.30.0270.04014.16
5.3.20.0300.04013.95
5.3.10.0200.05013.88
5.3.00.0200.05013.89
5.2.170.0170.04311.40
5.2.160.0170.04011.39
5.2.150.0170.04311.40
5.2.140.0170.04711.29
5.2.130.0200.05711.28
5.2.120.0170.04011.34
5.2.110.0170.04011.24
5.2.100.0170.04011.24
5.2.90.0200.04011.39
5.2.80.0170.04311.27
5.2.70.0200.04011.27
5.2.60.0230.04311.23
5.2.50.0170.04011.22
5.2.40.0270.02711.17
5.2.30.0200.04711.25
5.2.20.0170.03711.09
5.2.10.0200.04711.11
5.2.00.0100.04311.00
5.1.60.0100.03710.11
5.1.50.0200.03010.11
5.1.40.0200.03710.16
5.1.30.0170.03710.57
5.1.20.0170.03710.61
5.1.10.0200.03710.28
5.1.00.0200.04710.23
5.0.50.0100.0278.67
5.0.40.0130.0238.68
5.0.30.0130.0408.29
5.0.20.0170.0208.32
5.0.10.0100.0278.34
5.0.00.0070.0438.28
4.4.90.0070.0305.89
4.4.80.0100.0275.91
4.4.70.0030.0275.89
4.4.60.0100.0205.87
4.4.50.0100.0305.93
4.4.40.0000.0405.95
4.4.30.0070.0235.98
4.4.20.0070.0236.03
4.4.10.0070.0236.00
4.4.00.0030.0375.96
4.3.110.0130.0175.82
4.3.100.0070.0205.82
4.3.90.0100.0175.83
4.3.80.0100.0305.78
4.3.70.0030.0235.78
4.3.60.0030.0235.80
4.3.50.0070.0235.77
4.3.40.0070.0375.73
4.3.30.0100.0174.68
4.3.20.0030.0234.59
4.3.10.0030.0234.56
4.3.00.0130.0238.41

preferences:
57.05 ms | 401 KiB | 5 Q