3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><Body><Response TID="c4ed40a4-8e91-46ee-b571-9ace4c47f642" xmlns:ns="http://wsg.avis.com/wsbang"><OTA_VehResRS xsi:schemaLocation="http://www.opentravel.org/OTA/2008/05 OTA_VehResRS" EchoToken="CT" Target="Production" Version="1.0" SequenceNmbr="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opentravel.org/OTA/2003/05"><Success/><VehResRSCore><VehReservation><VehSegmentCore><Vendor>Budget</Vendor></VehSegmentCore></VehReservation></VehResRSCore><Errors><Error Type="3" ShortText="30212 BizRule">Invalid Value for payment amount</Error></Errors></OTA_VehResRS><!-- Processed by Direct Connect ver. 12.0 build 0 --></Response></Body></Envelope>'; $objXml = simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA); $rootelement = $objXml->getName(); $hello[$rootelement] = json_decode(json_encode($objXml), TRUE); var_dump($hello); var_dump($objXml->Body->Response->OTA_VehResRS->Errors->Error);

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.57
8.3.50.0100.00720.18
8.3.40.0040.01218.91
8.3.30.0070.00718.86
8.3.20.0040.00422.02
8.3.10.0000.00923.96
8.3.00.0040.00422.12
8.2.180.0190.00318.75
8.2.170.0070.00722.96
8.2.160.0150.00019.15
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00819.65
8.2.120.0070.00026.35
8.2.110.0090.00019.50
8.2.100.0090.00318.09
8.2.90.0040.00419.38
8.2.80.0000.00817.97
8.2.70.0000.00817.60
8.2.60.0000.00918.05
8.2.50.0030.00518.10
8.2.40.0040.00420.80
8.2.30.0070.00019.45
8.2.20.0080.00018.30
8.2.10.0040.00418.34
8.2.00.0040.00418.48
8.1.280.0120.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0170.00021.23
8.1.230.0060.00618.01
8.1.220.0050.00317.91
8.1.210.0030.00618.77
8.1.200.0000.00917.48
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0030.00518.71
8.1.160.0040.00419.04
8.1.150.0070.00019.01
8.1.140.0040.00419.28
8.1.130.0040.00417.83
8.1.120.0050.00317.68
8.1.110.0000.00717.53
8.1.100.0030.00617.61
8.1.90.0070.00017.51
8.1.80.0000.00717.67
8.1.70.0000.00717.49
8.1.60.0000.00717.61
8.1.50.0000.00917.67
8.1.40.0000.00817.57
8.1.30.0030.00517.72
8.1.20.0040.00417.83
8.1.10.0040.00417.88
8.1.00.0040.00417.82
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0030.00318.59
8.0.270.0040.00417.40
8.0.260.0030.00317.36
8.0.250.0030.00317.18
8.0.240.0040.00416.98
8.0.230.0070.00017.00
8.0.220.0040.00317.06
8.0.210.0080.00016.92
8.0.200.0040.00417.09
8.0.190.0000.00816.98
8.0.180.0000.01016.82
8.0.170.0040.00417.01
8.0.160.0030.00516.99
8.0.150.0070.00016.90
8.0.140.0070.00017.05
8.0.130.0030.00313.40
8.0.120.0030.00516.89
8.0.110.0040.00416.91
8.0.100.0000.00817.12
8.0.90.0000.00717.06
8.0.80.0060.00916.99
8.0.70.0030.00516.90
8.0.60.0040.00417.08
8.0.50.0040.00416.86
8.0.30.0110.00917.24
8.0.20.0160.00617.50
8.0.10.0040.00417.09
8.0.00.0120.00617.02
7.4.330.0000.00515.55
7.4.320.0030.00316.70
7.4.300.0000.00716.83
7.4.290.0070.00016.77
7.4.280.0070.00016.68
7.4.270.0040.00416.91
7.4.260.0000.00716.79
7.4.250.0040.00416.80
7.4.240.0000.00716.75
7.4.230.0070.00016.72
7.4.220.0040.00416.76
7.4.210.0070.00816.82
7.4.200.0040.00416.82
7.4.160.0070.01416.71
7.4.150.0190.00617.40
7.4.140.0140.00717.86
7.4.130.0050.01516.84
7.4.120.0110.01016.72
7.4.110.0090.00916.74
7.4.100.0100.01316.59
7.4.90.0110.00716.82
7.4.80.0090.00919.39
7.4.70.0130.01016.61
7.4.60.0000.01616.92
7.4.50.0060.00616.88
7.4.40.0100.00716.59
7.4.00.0060.00914.84
7.3.330.0050.00013.18
7.3.320.0000.00613.38
7.3.310.0000.00816.58
7.3.300.0040.00416.41
7.3.290.0060.01216.53
7.3.280.0080.00616.55
7.3.270.0150.01217.40
7.3.260.0140.00716.70
7.3.250.0080.01316.57
7.3.240.0060.01416.61
7.3.230.0060.01316.71
7.3.210.0060.01316.44
7.3.200.0100.00616.55
7.3.190.0090.01216.62
7.3.180.0030.01316.59
7.3.170.0000.01616.70
7.3.160.0060.01716.64
7.2.330.0130.00717.00
7.2.320.0110.00717.03
7.2.310.0110.01116.50
7.2.300.0080.00816.70
7.2.290.0100.00716.92
7.2.110.0000.01516.72
7.2.60.0170.00317.08
7.2.00.0090.00619.10
7.1.200.0070.00715.92
7.1.120.0030.00918.75
7.1.110.0070.00618.11
7.1.100.0060.00617.93
7.1.90.0030.01018.01
7.1.80.0110.01118.13
7.1.70.0060.01017.33
7.1.60.0240.00635.21
7.1.50.0270.00534.80
7.1.40.0190.00834.45
7.1.30.0240.00334.46
7.1.20.0170.01034.55
7.1.10.0090.00616.63
7.1.00.0100.00316.71

preferences:
58.27 ms | 400 KiB | 5 Q