3v4l.org

run code in 300+ PHP versions simultaneously
<?php $soapXMLResult = '<soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <HostCustomerResponse xmlns="http://xx.xx.xx.xx"> <ns1:output xmlns:ns1="http://xx.xx.xx" xmlns:ns2="some:url" xsi:type="ns2:Output"> <ns2:statusCode>00</ns2:statusCode> <ns2:statusMsg/> <ns2:txnResponseDateTime>20190625164236</ns2:txnResponseDateTime> <ns2:txnData> <transferRequest> <transfer> <transferId>123456789</transferId> <txnDate>123456789</txnDate> <debitAcctNo>123456789</debitAcctNo> <benAcctNo>123456789</benAcctNo> </transfer> </transferRequest> </ns2:txnData> </ns1:output> </HostCustomerResponse> </soapenv:Body> </soapenv:Envelope>'; $response = preg_replace("/(<\/?)(\w+):([^>]*>)/", "$1$2$3", $soapXMLResult); $xml = new SimpleXMLElement($response); $body = $xml->xpath('//soapenvBody')[0]; $array = json_decode(json_encode((array)$body), TRUE); $transfer = $array['HostCustomerResponse']['ns1output']['ns2txnData']['transferRequest']['transfer']; echo '<pre>'; print_r($transfer);

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.4.140.0160.00518.37
8.4.130.0140.00618.30
8.4.120.0100.01020.83
8.4.110.0120.00922.85
8.4.100.0140.00418.57
8.4.90.0130.00920.72
8.4.80.0080.00919.25
8.4.70.0150.00418.62
8.4.60.0090.01019.20
8.4.50.0050.00420.04
8.4.40.0130.00718.08
8.4.30.0130.00622.64
8.4.20.0040.00420.90
8.4.10.0090.00018.41
8.3.270.0130.00716.93
8.3.260.0120.00817.08
8.3.250.0130.00619.14
8.3.240.0100.01017.14
8.3.230.0080.00716.93
8.3.220.0100.00919.23
8.3.210.0110.00418.96
8.3.200.0100.00816.93
8.3.190.0130.00617.45
8.3.180.0100.00918.84
8.3.170.0150.00417.36
8.3.160.0080.00018.86
8.3.150.0160.00321.29
8.3.140.0040.00417.19
8.3.130.0080.00018.93
8.3.120.0000.01619.52
8.3.110.0000.01017.03
8.3.100.0040.00419.05
8.3.90.0000.00817.25
8.3.80.0090.00018.80
8.3.70.0120.00617.38
8.3.60.0180.00418.81
8.3.50.0110.00918.67
8.3.40.0000.01519.29
8.3.30.0120.00319.05
8.3.20.0040.00421.18
8.3.10.0080.00020.44
8.3.00.0080.00023.98
8.2.290.0060.00220.73
8.2.280.0120.00719.07
8.2.270.0100.01017.77
8.2.260.0040.00417.47
8.2.250.0040.01118.91
8.2.240.0130.00717.34
8.2.230.0030.00620.94
8.2.220.0060.00324.06
8.2.210.0150.00726.77
8.2.200.0110.00417.38
8.2.190.0140.01117.25
8.2.180.0060.00917.13
8.2.170.0110.00422.96
8.2.160.0070.00720.90
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0060.00320.77
8.2.100.0090.00318.28
8.2.90.0030.00618.41
8.2.80.0040.00418.54
8.2.70.0050.00318.41
8.2.60.0080.00018.53
8.2.50.0080.00018.13
8.2.40.0040.00419.77
8.2.30.0040.00419.60
8.2.20.0040.00418.44
8.2.10.0060.00319.60
8.2.00.0000.00719.64
8.1.330.0150.00424.21
8.1.320.0140.00718.55
8.1.310.0120.00319.00
8.1.300.0030.00516.95
8.1.290.0090.00018.88
8.1.280.0140.00425.92
8.1.270.0030.00524.38
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00324.23
8.1.230.0040.00823.00
8.1.220.0050.00318.13
8.1.210.0050.00319.04
8.1.200.0030.00617.73
8.1.190.0000.00817.73
8.1.180.0000.00918.10
8.1.170.0040.00419.27
8.1.160.0040.00419.27
8.1.150.0040.00419.20
8.1.140.0040.00419.16
8.1.130.0000.00720.48
8.1.120.0000.00718.00
8.1.110.0050.00318.00
8.1.100.0000.00818.00
8.1.90.0030.00517.77
8.1.80.0030.00517.98
8.1.70.0030.00318.11
8.1.60.0000.00818.07
8.1.50.0030.00518.00
8.1.40.0030.00618.02
8.1.30.0060.00318.30
8.1.20.0030.00618.16
8.1.10.0000.00818.02
8.1.00.0030.00618.13
8.0.300.0060.00620.14
8.0.290.0060.00317.25
8.0.280.0040.00418.81
8.0.270.0000.00717.75
8.0.260.0030.00318.88
8.0.250.0070.00017.50
8.0.240.0110.00017.49
8.0.230.0030.00317.52
8.0.220.0030.00617.35
8.0.210.0040.00417.35
8.0.200.0030.00317.41
8.0.190.0030.00617.48
8.0.180.0000.00717.23
8.0.170.0030.00717.26
8.0.160.0080.00017.50
8.0.150.0030.00517.18
8.0.140.0040.00417.29
8.0.130.0000.00513.86
8.0.120.0000.00817.40
8.0.110.0040.00417.44
8.0.100.0040.00417.35
8.0.90.0040.00417.31
8.0.80.0050.01117.28
8.0.70.0000.00717.34
8.0.60.0040.00417.34
8.0.50.0000.00917.50
8.0.30.0100.01217.76
8.0.20.0070.01417.49
8.0.10.0040.00417.58
8.0.00.0130.00717.31
7.4.330.0030.00315.55
7.4.320.0060.00017.20
7.4.300.0030.00317.04
7.4.290.0030.00317.10
7.4.280.0000.00717.13
7.4.270.0040.00417.20
7.4.260.0050.00317.20
7.4.250.0060.00317.03
7.4.240.0040.00417.16
7.4.230.0040.00417.19
7.4.220.0030.00617.27
7.4.210.0110.01017.18
7.4.200.0080.00017.32
7.4.160.0110.00917.05
7.4.130.0090.00916.82
7.4.120.0050.01617.16
7.4.110.0150.00417.13
7.4.100.0110.01117.09
7.4.90.0140.00416.99
7.4.80.0030.01719.39
7.4.70.0030.01217.04
7.4.60.0140.00917.09
7.4.50.0030.01317.09
7.4.40.0070.01017.27
7.4.00.0070.01115.18
7.3.330.0000.00613.72
7.3.320.0060.00013.76
7.3.310.0070.00016.91
7.3.300.0070.00016.82
7.3.290.0070.00816.86
7.3.280.0180.00316.94
7.3.260.0120.00716.96
7.3.230.0110.00716.98
7.3.210.0150.00417.17
7.3.200.0150.00317.18
7.3.190.0060.01516.91
7.3.180.0070.01316.95
7.3.170.0070.01016.95
7.3.160.0070.01016.91
7.3.120.0100.00715.04
7.3.110.0030.01214.93
7.3.100.0060.00615.19
7.3.90.0050.00615.06
7.3.80.0060.00915.18
7.3.70.0090.00314.85
7.3.60.0030.01515.11
7.3.50.0080.00615.08
7.3.40.0080.00515.09
7.3.30.0100.00214.95
7.3.20.0090.00915.82
7.3.10.0110.00815.77
7.3.00.0070.00815.68
7.2.330.0110.00717.19
7.2.320.0090.00617.10
7.2.310.0090.00917.18
7.2.300.0030.01317.06
7.2.290.0070.01417.21
7.2.250.0040.01515.46
7.2.240.0060.00915.21
7.2.230.0030.01315.28
7.2.220.0040.00415.55
7.2.210.0070.00715.55
7.2.200.0100.00715.18
7.2.190.0070.00715.25
7.2.180.0110.00715.34
7.2.170.0070.01115.38
7.2.160.0080.00815.28
7.2.150.0240.00516.01
7.2.140.0390.00415.79
7.2.130.0080.01515.91
7.2.120.0130.00916.03
7.2.110.0120.00915.79
7.2.100.0080.00815.92
7.2.90.0240.00716.05
7.2.80.0120.00716.03
7.2.70.0070.01015.87
7.2.60.0110.00615.91
7.2.50.0090.00716.13
7.2.40.0130.00516.04
7.2.30.0100.01016.05
7.2.20.0120.01115.98
7.2.10.0120.00616.02
7.2.00.0090.00716.04
7.1.330.0060.00616.22
7.1.320.0070.00315.95
7.1.310.0030.01316.00
7.1.300.0120.00615.07
7.1.290.0120.00814.92
7.1.280.0410.00214.81
7.1.270.0100.00815.00
7.1.260.0110.00814.87
7.1.250.0090.01114.77

preferences:
31.27 ms | 403 KiB | 5 Q