3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <VehicleDescription xmlns="urn:description7b.services.chrome.com" country="US" language="en" modelYear="2008" bestMakeName="Audi" bestModelName="S4" bestStyleName="5dr Avant Wgn"> <responseStatus responseCode="Successful" description="Successful"/> <vinDescription vin="WAUUL78E38A092113" modelYear="2008" division="Audi" modelName="S4" styleName="5dr Avant Wgn" bodyType="Wagon 4 Dr." drivingWheels="AWD" builddata="no"> <WorldManufacturerIdentifier>Germany Audi Nsu</WorldManufacturerIdentifier> <restraintTypes> <group id="9">Safety</group> <header id="38">Air Bag - Frontal</header> <category id="1001">Driver Air Bag</category> </restraintTypes> <restraintTypes> <group id="9">Safety</group> <header id="38">Air Bag - Frontal</header> <category id="1002">Passenger Air Bag</category> </restraintTypes> <restraintTypes> <group id="9">Safety</group> <header id="39">Air Bag - Side</header> <category id="1005">Front Side Air Bag</category> </restraintTypes> <restraintTypes> <group id="9">Safety</group> <header id="39">Air Bag - Side</header> <category id="1007">Front Head Air Bag</category> </restraintTypes> <restraintTypes> <group id="9">Safety</group> <header id="39">Air Bag - Side</header> <category id="1008">Rear Head Air Bag</category> </restraintTypes> <marketClass id="53">Small Wagon</marketClass> </vinDescription> </VehicleDescription> </S:Body></S:Envelope>'; $dom = new DOMDocument(); $dom->loadXML($xml); $node = $dom->getElementsByTagName('VehicleDescription')->item(0); echo $dom->saveXml($node); // outputs xml without envelope and body echo "\n-------------------\n"; $id = $dom->getElementsByTagName('WorldManufacturerIdentifier')->item(0); echo $id->textContent;

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.5.10.0100.00917.00
8.5.00.0110.00920.15
8.4.150.0030.00014.05
8.4.140.0140.00718.11
8.4.130.0100.00317.99
8.4.120.0050.00422.49
8.4.110.0110.00722.79
8.4.100.0080.00117.98
8.4.90.0060.00218.98
8.4.80.0150.00617.99
8.4.70.0100.00619.77
8.4.60.0120.00819.01
8.4.50.0110.00819.97
8.4.40.0090.00317.95
8.4.30.0060.01317.71
8.4.20.0140.00720.64
8.4.10.0180.00319.66
8.3.280.0120.01018.68
8.3.270.0150.00716.84
8.3.260.0140.00516.76
8.3.250.0050.00419.46
8.3.240.0120.00217.35
8.3.230.0120.00716.76
8.3.220.0090.00917.37
8.3.210.0130.00717.02
8.3.200.0040.00416.82
8.3.190.0040.00517.34
8.3.180.0060.00217.35
8.3.170.0080.00017.02
8.3.160.0110.00718.59
8.3.150.0030.00618.54
8.3.140.0040.00417.65
8.3.130.0120.00616.65
8.3.120.0050.00320.91
8.3.110.0040.00418.71
8.3.100.0050.00518.55
8.3.90.0130.00326.77
8.3.80.0110.00416.85
8.3.70.0090.00616.88
8.3.60.0000.01518.68
8.3.50.0110.00318.21
8.3.40.0070.00718.92
8.3.30.0110.00418.97
8.3.20.0050.00318.88
8.3.10.0080.00022.12
8.3.00.0030.00622.10
8.2.290.0040.00520.92
8.2.280.0140.00418.73
8.2.270.0000.00717.77
8.2.260.0050.00317.18
8.2.250.0170.00317.20
8.2.240.0040.00417.43
8.2.230.0070.00422.58
8.2.220.0130.00324.06
8.2.210.0110.00426.77
8.2.200.0110.00016.88
8.2.190.0070.01116.88
8.2.180.0090.00925.92
8.2.170.0120.00619.22
8.2.160.0070.00720.65
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0100.00022.46
8.2.120.0080.00026.35
8.2.110.0070.00320.55
8.2.100.0080.00418.00
8.2.90.0060.00318.00
8.2.80.0000.00817.97
8.2.70.0040.00418.18
8.2.60.0040.00418.28
8.2.50.0080.00018.10
8.2.40.0040.00421.48
8.2.30.0050.00220.93
8.2.20.0080.00018.30
8.2.10.0080.00018.37
8.2.00.0030.00519.69
8.1.330.0070.01222.23
8.1.320.0090.01016.70
8.1.310.0100.00718.91
8.1.300.0090.00916.34
8.1.290.0030.00630.84
8.1.280.0120.00325.92
8.1.270.0090.00023.98
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0080.00021.34
8.1.230.0070.00318.20
8.1.220.0040.00417.93
8.1.210.0050.00318.77
8.1.200.0090.00017.60
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0050.00518.77
8.1.160.0000.00819.13
8.1.150.0050.00219.14
8.1.140.0020.00519.11
8.1.130.0070.00020.63
8.1.120.0040.00417.62
8.1.110.0000.00917.63
8.1.100.0050.00317.76
8.1.90.0040.00417.75
8.1.80.0080.00017.60
8.1.70.0030.00317.73
8.1.60.0030.00817.81
8.1.50.0000.00917.67
8.1.40.0030.00517.66
8.1.30.0050.00317.86
8.1.20.0050.00617.99
8.1.10.0050.00317.95
8.1.00.0040.00417.70
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0040.00418.73
8.0.270.0000.00717.03
8.0.260.0070.00018.65
8.0.250.0000.00917.33
8.0.240.0030.00317.17
8.0.230.0030.00317.06
8.0.220.0070.00017.04
8.0.210.0000.00717.12
8.0.200.0050.00217.18
8.0.190.0040.00417.23
8.0.180.0040.00417.05
8.0.170.0090.00017.18
8.0.160.0040.00417.06
8.0.150.0040.00717.00
8.0.140.0070.00017.07
8.0.130.0000.00613.47
8.0.120.0040.00417.09
8.0.110.0000.00817.14
8.0.100.0000.00917.05
8.0.90.0050.00317.15
8.0.80.0040.01417.10
8.0.70.0040.00417.13
8.0.60.0040.00417.15
8.0.50.0040.00417.17
8.0.30.0080.01017.28
8.0.20.0050.01317.41
8.0.10.0070.00017.23
8.0.00.0060.01416.93
7.4.330.0030.00315.55
7.4.320.0080.00016.73
7.4.300.0000.00716.73
7.4.290.0020.00516.63
7.4.280.0060.00316.81
7.4.270.0080.00016.74
7.4.260.0000.00716.68
7.4.250.0070.00016.79
7.4.240.0040.00416.75
7.4.230.0040.00416.85
7.4.220.0040.00416.81
7.4.210.0120.00816.79
7.4.200.0000.00816.72
7.4.160.0090.00816.80
7.4.140.0120.00717.86
7.4.130.0110.01416.76
7.4.120.0120.00716.73
7.4.110.0100.00716.68
7.4.100.0100.00716.68
7.4.90.0130.01016.54
7.4.80.0090.00919.39
7.4.70.0060.01416.66
7.4.60.0110.00716.65
7.4.50.0060.00916.66
7.4.40.0030.02416.78
7.4.20.0270.00416.71
7.4.10.0040.01115.04
7.4.00.0090.00815.12
7.3.330.0020.00213.30
7.3.320.0060.00013.29
7.3.310.0040.00416.51
7.3.300.0070.00016.41
7.3.290.0030.00316.46
7.3.280.0050.01116.44
7.3.260.0120.00916.66
7.3.240.0090.00916.61
7.3.230.0090.01116.65
7.3.210.0150.00616.73
7.3.200.0060.01116.45
7.3.190.0090.00616.56
7.3.180.0080.00916.92
7.3.170.0160.00616.54
7.3.160.0100.00716.50
7.3.130.0090.00914.71
7.3.120.0130.00514.95
7.3.110.0060.01214.93
7.3.100.0040.01214.92
7.3.90.0090.00614.98
7.3.80.0060.00714.82
7.3.70.0070.00714.79
7.3.60.0080.00314.73
7.3.50.0040.01214.86
7.3.40.0080.00714.84
7.3.30.0060.00714.74
7.3.20.0070.00716.07
7.3.10.0070.00616.07
7.3.00.0050.00816.05
7.2.330.0080.01117.02
7.2.320.0180.00617.01
7.2.310.0040.01817.14
7.2.300.0130.01017.13
7.2.290.0000.01717.09
7.2.260.0070.01114.89
7.2.250.0120.00715.20
7.2.240.0050.01115.15
7.2.230.0070.00815.09
7.2.220.0070.00915.08
7.2.210.0100.00315.11
7.2.200.0040.01015.05
7.2.190.0030.01215.17
7.2.180.0090.00715.23
7.2.170.0050.01015.11
7.2.160.0070.01214.93
7.2.150.0050.00915.93
7.2.140.0150.00816.06
7.2.130.0100.00216.01
7.2.120.0090.00616.11
7.2.110.0100.00516.10
7.2.100.0470.00915.65
7.2.90.0620.00615.74
7.2.80.0410.00915.59
7.2.70.0640.00915.74
7.2.60.0580.00415.74
7.2.50.0550.00515.67
7.2.40.0880.00815.73
7.2.30.0610.00615.63
7.2.20.0640.00715.74
7.2.10.0600.00515.77
7.2.00.0490.01015.70
7.1.330.0090.00515.94
7.1.320.0070.00615.41
7.1.310.0080.00615.15
7.1.300.0100.00815.30
7.1.290.0070.00715.23
7.1.280.0090.00615.24
7.1.270.0070.00815.19
7.1.260.0060.00815.15
7.1.250.0050.00814.91
7.1.240.0090.00614.87
7.1.230.0110.00414.96
7.1.220.0610.00814.57
7.1.210.0460.00814.46
7.1.200.0350.00714.49
7.1.190.0660.01014.62
7.1.180.0480.00814.51
7.1.170.0400.00414.55
7.1.160.0470.01114.57
7.1.150.0570.00814.57
7.1.140.0530.00614.47
7.1.130.0670.01214.56
7.1.120.0540.01114.47
7.1.110.0610.00714.54
7.1.100.0560.00714.49
7.1.90.0610.01014.50
7.1.80.0590.00814.48
7.1.70.0620.00814.53
7.1.60.0650.01020.58
7.1.50.0800.00920.49
7.1.40.0760.00720.50
7.1.30.1070.00920.59
7.1.20.0850.01020.46
7.1.10.0870.00514.47
7.1.00.0670.00814.48
7.0.330.0100.00313.64
5.6.400.0030.01014.29
5.6.390.0070.00714.45
5.6.380.0080.00814.36

preferences:
38.22 ms | 403 KiB | 5 Q