3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = " <SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'> <SOAP-ENV:Body> <OTA_HotelResNotifRS xmlns='http://www.opentravel.org/OTA/2003/05' TimeStamp='2016-12-01T07:14:56' EchoToken='f3edc6ef-8734-4c83-8675-c9462d808e62' Version='1.003' xsi:schemaLocation='http://www.opentravel.org/OTA/2003/05 OTA_HotelResNotifRQ.xsd'> <Errors> <Error Type='1'>Premature end of file.</Error> </Errors> </OTA_HotelResNotifRS> </SOAP-ENV:Body> </SOAP-ENV:Envelope>"; function parseReservationResponseXML($content) { /* * RateTiger response da xsi eklenince hata aldigimizdan dolayi bu bolum siliniyor. */ $content = str_replace("xsi:schemaLocation='http://www.opentravel.org/OTA/2003/05 OTA_HotelResNotifRQ.xsd'", '', $content); $requestParams = preg_replace("/(<\/?)(\w+):([^>]*>)/", "$1$2$3", $content); $xml = new SimpleXMLElement($requestParams); $body = $xml->xpath('//SOAP-ENV:Body')[0]; return json_decode(json_encode((array)$body), true); } var_dump(parseReservationResponseXML($a));

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.0040.01118.93
8.3.50.0140.00822.36
8.3.40.0060.01619.25
8.3.30.0060.00918.93
8.3.20.0060.00319.13
8.3.10.0000.00822.41
8.3.00.0000.00819.57
8.2.180.0090.00918.79
8.2.170.0090.00622.96
8.2.160.0070.00720.77
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0090.00920.26
8.2.120.0080.00026.35
8.2.110.0040.00722.70
8.2.100.0080.00418.39
8.2.90.0090.00019.59
8.2.80.0000.00818.25
8.2.70.0050.00518.13
8.2.60.0060.00318.13
8.2.50.0000.00818.16
8.2.40.0050.00318.30
8.2.30.0080.00019.55
8.2.20.0070.00018.46
8.2.10.0030.00618.45
8.2.00.0040.00418.28
8.1.280.0200.00325.92
8.1.270.0080.00022.52
8.1.260.0000.00828.09
8.1.250.0070.00028.09
8.1.240.0030.00721.44
8.1.230.0120.00019.41
8.1.220.0090.00018.16
8.1.210.0080.00018.77
8.1.200.0040.00717.63
8.1.190.0000.00817.60
8.1.180.0050.00518.10
8.1.170.0030.00517.88
8.1.160.0040.00419.16
8.1.150.0020.00520.62
8.1.140.0000.00719.82
8.1.130.0000.00718.04
8.1.120.0000.00718.00
8.1.110.0030.00617.96
8.1.100.0040.00417.98
8.1.90.0000.00717.77
8.1.80.0040.00417.88
8.1.70.0080.00318.07
8.1.60.0080.00018.18
8.1.50.0030.00617.96
8.1.40.0000.00817.89
8.1.30.0060.00318.05
8.1.20.0030.00518.20
8.1.10.0060.00317.98
8.1.00.0000.00817.80
8.0.300.0050.00319.15
8.0.290.0070.00016.85
8.0.280.0000.00718.81
8.0.270.0000.00717.55
8.0.260.0040.00417.60
8.0.250.0070.00017.35
8.0.240.0000.00817.27
8.0.230.0050.00317.22
8.0.220.0040.00417.41
8.0.210.0040.00417.30
8.0.200.0000.00717.47
8.0.190.0000.00817.49
8.0.180.0040.00417.44
8.0.170.0080.00017.46
8.0.160.0070.00017.46
8.0.150.0000.00717.16
8.0.140.0040.00417.39
8.0.130.0030.00313.85
8.0.120.0050.00317.37
8.0.110.0040.00417.42
8.0.100.0050.00317.20
8.0.90.0030.00517.16
8.0.80.0030.01817.34
8.0.70.0070.00017.38
8.0.60.0000.00717.34
8.0.50.0050.00217.34
8.0.30.0100.00917.46
8.0.20.0100.01117.58
8.0.10.0040.00417.40
8.0.00.0110.01417.07
7.4.330.0040.00415.55
7.4.320.0030.00317.08
7.4.300.0060.00017.21
7.4.290.0070.00317.13
7.4.280.0040.00417.08
7.4.270.0050.00217.21
7.4.260.0050.00317.24
7.4.250.0040.00417.20
7.4.240.0050.00217.29
7.4.230.0040.00417.15
7.4.220.0060.01417.18
7.4.210.0090.01217.27
7.4.200.0040.00417.00
7.4.160.0140.00817.08
7.4.150.0130.00617.40
7.4.140.0100.01017.86
7.4.130.0100.00717.04
7.4.120.0110.00717.17
7.4.110.0100.00817.09
7.4.100.0140.00316.98
7.4.90.0070.01117.04
7.4.80.0190.00319.39
7.4.70.0090.01317.17
7.4.60.0070.01417.09
7.4.50.0030.01317.23
7.4.40.0080.01017.22
7.4.30.0080.00817.12
7.4.10.0060.01316.96
7.4.00.0130.00516.01
7.3.330.0060.00013.65
7.3.320.0030.00313.92
7.3.310.0030.00316.93
7.3.300.0070.00016.89
7.3.290.0080.00916.91
7.3.280.0090.01116.91
7.3.270.0040.01517.40
7.3.260.0080.01016.98
7.3.250.0140.00316.83
7.3.240.0080.01117.13
7.3.230.0030.01417.00
7.3.210.0110.00717.27
7.3.200.0200.00317.00
7.3.190.0030.01317.00
7.3.180.0120.00416.85
7.3.170.0070.01016.71
7.3.160.0070.01517.03
7.3.130.0130.01016.80
7.3.120.0090.01015.64
7.3.110.0050.00715.68
7.3.100.0060.00815.75
7.3.90.0070.00715.60
7.3.80.0020.01315.89
7.3.70.0090.00715.74
7.3.60.0040.01115.65
7.3.50.0050.01015.66
7.3.40.0070.00715.67
7.3.30.0050.00715.65
7.3.20.0040.00917.53
7.3.10.0080.00817.47
7.3.00.0070.00817.43
7.2.330.0150.00316.91
7.2.320.0110.00717.00
7.2.310.0060.01317.12
7.2.300.0070.01117.11
7.2.290.0150.00317.25
7.2.260.0090.00617.33
7.2.250.0150.00717.18
7.2.240.0040.01115.91
7.2.230.0090.00516.05
7.2.220.0080.00616.02
7.2.210.0090.00416.01
7.2.200.0050.01015.87
7.2.190.0040.01015.93
7.2.180.0040.01215.89
7.2.170.0070.00916.00
7.2.160.0030.01116.04
7.2.150.0090.00717.88
7.2.140.0070.00917.92
7.2.130.0040.01317.84
7.2.120.0050.01017.78
7.2.110.0060.00917.77
7.2.100.0080.00817.91
7.2.90.0060.01017.85
7.2.80.0080.00717.80
7.2.70.0050.01017.97
7.2.60.0080.00817.92
7.2.50.0070.00717.84
7.2.40.0040.01217.80
7.2.30.0070.00817.81
7.2.20.0050.01117.86
7.2.10.0050.00917.74
7.2.00.0080.00818.26
7.1.330.0070.00716.84
7.1.320.0060.00816.73
7.1.310.0050.00816.72
7.1.300.0070.00816.79
7.1.290.0060.00816.68
7.1.280.0070.00916.55
7.1.270.0070.00616.70
7.1.260.0060.00716.77
7.1.250.0040.01216.61
7.1.240.0040.01217.98
7.1.230.0040.00717.91
7.1.220.0090.00617.90
7.1.210.0040.00417.84
7.1.200.0070.00717.82
7.1.190.0000.01617.91
7.1.180.0000.01817.77
7.1.170.0000.01217.98
7.1.160.0030.01217.74
7.1.150.0090.00317.93
7.1.140.0000.01617.97
7.1.130.0040.01117.91
7.1.120.0070.00418.07
7.1.110.0070.00718.05
7.1.100.0090.00717.99
7.1.90.0050.00518.00
7.1.80.0040.00817.82
7.1.70.0100.00717.78
7.1.60.0050.00717.78
7.1.50.0020.01117.68
7.1.40.0060.00618.02
7.1.30.0090.00617.89
7.1.20.0100.00617.89
7.1.10.0130.00017.93
7.1.00.0090.03820.21
7.0.330.0000.01717.59
7.0.320.0060.00917.60
7.0.310.0080.00817.66
7.0.300.0030.01517.68
7.0.290.0120.00317.48
7.0.280.0000.01117.55
7.0.270.0090.00917.48
7.0.260.0060.00917.66
7.0.250.0130.00317.64
7.0.240.0120.00317.42
7.0.230.0040.01117.63
7.0.220.0070.00417.73
7.0.210.0070.01017.63
7.0.200.0120.00216.48
7.0.190.0120.00317.68
7.0.180.0030.01017.71
7.0.170.0060.01017.41
7.0.160.0060.00917.59
7.0.150.0030.01017.64
7.0.140.0000.01017.63
7.0.130.0110.03119.94
7.0.120.0070.03219.95
7.0.110.0050.03519.95
7.0.100.0070.03019.95
7.0.90.0100.03219.86
7.0.80.0060.03019.93
7.0.70.0080.03219.96
7.0.60.0020.04719.81
7.0.50.0040.04719.87
7.0.40.0100.03119.03
7.0.30.0130.02318.86
7.0.20.0020.03418.89
7.0.10.0080.03218.92
7.0.00.0000.04118.94
5.6.400.0070.00716.61
5.6.390.0100.00716.69
5.6.380.0080.00316.57
5.6.370.0030.01616.42
5.6.360.0000.01216.34
5.6.350.0030.01416.52
5.6.340.0040.01116.40
5.6.330.0100.00716.64
5.6.320.0100.01016.52
5.6.310.0090.00616.57
5.6.300.0040.00916.52
5.6.290.0100.00316.50
5.6.280.0080.03318.87
5.6.270.0080.03018.96
5.6.260.0030.03218.79
5.6.250.0080.03018.92
5.6.240.0080.03018.69
5.6.230.0090.03418.92
5.6.220.0030.04218.71
5.6.210.0050.03718.73
5.6.200.0060.04618.79
5.6.190.0030.03518.62
5.6.180.0030.03318.78
5.6.170.0110.03418.71
5.6.160.0100.02618.69
5.6.150.0060.03118.65
5.6.140.0000.04218.71
5.6.130.0030.03518.71
5.6.120.0060.03618.85
5.6.110.0050.03818.69
5.6.100.0120.03318.73
5.6.90.0030.03718.77
5.6.80.0110.02818.29
5.6.70.0120.03018.42
5.6.60.0130.03218.40
5.6.50.0070.03018.39
5.6.40.0110.02818.28
5.6.30.0120.02818.38
5.6.20.0050.03618.49
5.6.10.0050.03518.43
5.6.00.0050.03218.43

preferences:
59.51 ms | 401 KiB | 5 Q