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.00718.68
8.3.50.0120.00618.06
8.3.40.0070.00718.82
8.3.30.0040.01119.23
8.3.20.0000.00720.51
8.3.10.0030.00621.79
8.3.00.0030.00619.26
8.2.180.0190.00318.28
8.2.170.0000.01422.96
8.2.160.0090.00422.16
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0040.00717.91
8.2.110.0000.00822.20
8.2.100.0090.00318.03
8.2.90.0000.00819.21
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0000.00817.91
8.2.50.0000.00818.07
8.2.40.0060.00318.22
8.2.30.0040.00418.14
8.2.20.0050.00317.81
8.2.10.0040.00418.13
8.2.00.0050.00217.77
8.1.280.0070.00725.92
8.1.270.0000.00819.00
8.1.260.0110.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00624.01
8.1.230.0110.00019.28
8.1.220.0080.00017.77
8.1.210.0040.00418.77
8.1.200.0090.00317.35
8.1.190.0050.00317.25
8.1.180.0080.00018.10
8.1.170.0050.00518.49
8.1.160.0000.00822.22
8.1.150.0000.00718.99
8.1.140.0050.00319.36
8.1.130.0000.00717.52
8.1.120.0040.00417.45
8.1.110.0030.00617.53
8.1.100.0040.00417.40
8.1.90.0040.00417.56
8.1.80.0000.00717.46
8.1.70.0070.00017.51
8.1.60.0030.00617.59
8.1.50.0060.00317.49
8.1.40.0040.00417.49
8.1.30.0050.00317.70
8.1.20.0030.00517.77
8.1.10.0000.00717.62
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0070.00016.88
8.0.280.0040.00418.45
8.0.270.0030.00317.36
8.0.260.0000.00716.86
8.0.250.0070.00017.04
8.0.240.0000.00917.11
8.0.230.0000.00716.97
8.0.220.0030.00317.07
8.0.210.0000.00716.93
8.0.200.0000.00717.11
8.0.190.0030.00617.09
8.0.180.0080.00016.95
8.0.170.0060.00316.96
8.0.160.0040.00417.09
8.0.150.0040.00416.97
8.0.140.0040.00416.96
8.0.130.0070.00213.45
8.0.120.0030.00516.88
8.0.110.0040.00417.08
8.0.100.0000.00716.96
8.0.90.0000.00816.93
8.0.80.0190.00316.89
8.0.70.0080.00016.83
8.0.60.0060.00316.99
8.0.50.0030.00517.10
8.0.30.0080.01517.08
8.0.20.0090.01117.40
8.0.10.0000.00716.94
8.0.00.0100.00716.66
7.4.330.0030.00315.03
7.4.320.0000.00816.71
7.4.300.0000.00716.78
7.4.290.0030.00316.73
7.4.280.0000.00716.80
7.4.270.0000.00716.85
7.4.260.0030.00316.75
7.4.250.0000.00816.65
7.4.240.0060.00216.73
7.4.230.0000.00716.83
7.4.220.0090.00916.77
7.4.210.0120.00616.66
7.4.200.0040.00416.79
7.4.160.0030.01416.79
7.4.150.0090.00917.40
7.4.140.0070.01017.86
7.4.130.0100.00616.71
7.4.120.0120.00516.81
7.4.110.0120.00616.73
7.4.100.0090.00916.74
7.4.90.0080.00816.65
7.4.80.0060.01219.39
7.4.70.0100.01316.93
7.4.60.0080.00816.61
7.4.50.0000.00516.83
7.4.40.0090.00916.46
7.4.30.0130.00416.60
7.4.00.0080.00415.08
7.3.330.0060.00013.57
7.3.320.0030.00213.48
7.3.310.0000.00716.60
7.3.300.0040.00416.62
7.3.290.0080.00716.58
7.3.280.0090.00616.51
7.3.270.0080.00917.40
7.3.260.0120.00616.97
7.3.250.0070.01016.67
7.3.240.0030.01916.82
7.3.230.0090.00916.77
7.3.210.0070.01116.84
7.3.200.0090.01219.39
7.3.190.0100.00616.93
7.3.180.0180.00416.67
7.3.170.0110.01116.83
7.3.160.0030.01416.89
7.3.10.0040.01016.61
7.3.00.0130.00416.48
7.2.330.0090.00816.74
7.2.320.0070.01516.85
7.2.310.0130.00416.70
7.2.300.0030.01516.89
7.2.290.0120.01316.92
7.2.130.0060.00716.86
7.2.120.0090.00716.61
7.2.110.0110.00916.71
7.2.100.0120.00716.65
7.2.90.0080.00816.65
7.2.80.0080.01216.68
7.2.70.0140.00316.63
7.2.60.0100.00516.92
7.2.50.0060.01016.80
7.2.40.0130.00416.65
7.2.30.0110.00616.75
7.2.20.0090.01016.60
7.2.10.0060.01016.85
7.2.00.0070.01017.73
7.1.250.0100.00515.67
7.1.100.0030.00918.28
7.1.70.0040.00416.93
7.1.60.0090.01619.46
7.1.50.0070.01716.97
7.1.00.0070.07322.35
7.0.200.0070.00316.60
7.0.140.0070.03322.07
7.0.60.0100.03720.09
7.0.50.0070.06018.05
7.0.40.0000.07720.33
7.0.30.0270.04320.13
7.0.20.0300.03720.31
7.0.10.0030.04320.25
7.0.00.0000.09020.32
5.6.280.0030.07321.09
5.6.210.0130.07320.61
5.6.200.0100.04018.25
5.6.190.0070.06020.70
5.6.180.0330.07320.59
5.6.170.0300.07720.61
5.6.160.0100.06720.59
5.6.150.0130.07718.34
5.6.140.0170.07018.21
5.6.130.0100.08318.36
5.6.120.0100.05021.05
5.6.110.0170.06721.18
5.6.100.0030.07721.18
5.6.90.0100.07021.05
5.6.80.0100.07720.58
5.5.350.3030.04320.49
5.5.340.0130.06718.03
5.5.330.0100.06020.54
5.5.320.0070.08720.38
5.5.310.0200.03720.39
5.5.300.0070.07018.05
5.5.290.0100.08318.02
5.5.280.0070.07020.80
5.5.270.0070.06321.01
5.5.260.0100.05320.82
5.5.250.0200.06320.65
5.5.240.0000.09020.34
5.4.450.0570.06019.55
5.4.440.0130.05719.55
5.4.430.0100.05719.34
5.4.420.0130.05319.75
5.4.410.0070.06019.47
5.4.400.0100.05019.15
5.4.390.0930.04718.78
5.4.380.0830.06318.70
5.4.370.0770.06318.84
5.4.360.0870.04718.82
5.4.350.0930.07318.91
5.4.340.0900.04718.95
5.4.320.0830.05718.66
5.4.310.0900.06018.66
5.4.300.1270.06718.57
5.4.290.1000.06318.87
5.4.280.0800.05018.81
5.4.270.1070.06318.69
5.4.260.0730.06018.81
5.4.250.0870.04718.85
5.4.240.0770.06018.86
5.4.230.0770.05718.55
5.4.220.0800.06718.90
5.4.210.0830.04718.69
5.4.200.0830.04716.70
5.4.190.0830.05018.84
5.4.180.0830.05018.56
5.4.170.0800.05318.68
5.4.160.0700.05718.83
5.4.150.1000.04718.80
5.4.140.0770.05316.55
5.4.130.0900.05016.50
5.4.120.0770.05716.36
5.4.110.0770.05716.38
5.4.100.0830.04716.41
5.4.90.0800.05016.38
5.4.80.0800.05716.38
5.4.70.0870.05716.21
5.4.60.0930.05016.35
5.4.50.1000.04716.48
5.4.40.0970.05016.45
5.4.30.0870.05716.32
5.4.20.1030.05316.33
5.4.10.0870.05716.46
5.4.00.0870.04315.85
5.3.290.0830.05314.92
5.3.280.1100.05314.67
5.3.270.0800.05714.87
5.3.260.0830.05314.87
5.3.250.0870.04314.78
5.3.240.0730.05714.68
5.3.230.0800.05014.85
5.3.220.0800.05014.68
5.3.210.0800.05714.75
5.3.200.0670.05714.84
5.3.190.0800.05014.83
5.3.180.0830.05014.66
5.3.170.0800.05714.74
5.3.160.0770.05714.85
5.3.150.0830.05014.80
5.3.140.1030.04714.64
5.3.130.0930.05714.80
5.3.120.0930.06014.68
5.3.110.1000.05014.73
5.3.100.0730.06014.31
5.3.90.0870.05714.28
5.3.80.0830.05714.20
5.3.70.0830.04314.20
5.3.60.0900.04014.26
5.3.50.0930.05014.20
5.3.40.0900.03714.01
5.3.30.0870.04314.16
5.3.20.0800.04713.91
5.3.10.0770.05013.87
5.3.00.0970.04713.89
5.2.170.0800.04311.35
5.2.160.0800.04011.25
5.2.150.0730.03311.27
5.2.140.0800.04011.35
5.2.130.0830.03711.36
5.2.120.0870.05311.18
5.2.110.0830.03711.27
5.2.100.0700.03711.41
5.2.90.0830.04011.36
5.2.80.0730.05311.16
5.2.70.0830.04011.27
5.2.60.0830.04311.30
5.2.50.0830.04011.13
5.2.40.0570.04011.21
5.2.30.0570.03711.07
5.2.20.0470.04711.21
5.2.10.0470.04710.93
5.2.00.0500.04311.09
5.1.60.0500.03310.26
5.1.50.0600.02310.18
5.1.40.0500.04710.30
5.1.30.0670.03310.57
5.1.20.0530.03710.41
5.1.10.0530.03310.30
5.1.00.0600.04010.25
5.0.50.0270.0338.77
5.0.40.0300.0278.74
5.0.30.0300.0478.44
5.0.20.0300.0278.28
5.0.10.0400.0338.26
5.0.00.0370.0478.43
4.4.90.0270.0235.91
4.4.80.0330.0305.87
4.4.70.0300.0235.97
4.4.60.0270.0276.00
4.4.50.0330.0205.88
4.4.40.0300.0375.89
4.4.30.0330.0235.90
4.4.20.0400.0275.93
4.4.10.0330.0236.01
4.4.00.0370.0336.04
4.3.110.0270.0235.87
4.3.100.0330.0205.82
4.3.90.0270.0205.79
4.3.80.0230.0375.80
4.3.70.0230.0205.84
4.3.60.0270.0175.84
4.3.50.0270.0235.78
4.3.40.0270.0305.79
4.3.30.0130.0234.54
4.3.20.0170.0274.59
4.3.10.0130.0234.52
4.3.00.0070.0238.42

preferences:
51.52 ms | 400 KiB | 5 Q