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 Type='3'> <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.0110.00418.80
8.3.50.0070.00922.20
8.3.40.0030.01319.39
8.3.30.0040.01119.34
8.3.20.0050.00319.49
8.3.10.0080.00022.41
8.3.00.0050.00319.52
8.2.180.0070.01417.25
8.2.170.0070.00722.96
8.2.160.0140.00020.77
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0080.00020.39
8.2.110.0090.00321.46
8.2.100.0060.00619.92
8.2.90.0050.00518.41
8.2.80.0000.00818.25
8.2.70.0030.00518.00
8.2.60.0040.00418.41
8.2.50.0070.00418.07
8.2.40.0030.00620.57
8.2.30.0060.00318.42
8.2.20.0000.00818.40
8.2.10.0000.00718.46
8.2.00.0080.00018.11
8.1.280.0000.01525.92
8.1.270.0000.00822.52
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.80
8.1.230.0060.00621.24
8.1.220.0040.00418.05
8.1.210.0030.00618.92
8.1.200.0090.00017.73
8.1.190.0000.00817.72
8.1.180.0030.00518.10
8.1.170.0030.00619.08
8.1.160.0070.00019.18
8.1.150.0050.00320.58
8.1.140.0070.00019.91
8.1.130.0040.00417.87
8.1.120.0040.00418.02
8.1.110.0030.00617.98
8.1.100.0000.00817.97
8.1.90.0080.00017.97
8.1.80.0030.00517.73
8.1.70.0060.00617.94
8.1.60.0030.00618.03
8.1.50.0080.00017.87
8.1.40.0050.00318.09
8.1.30.0040.00418.18
8.1.20.0040.00418.22
8.1.10.0050.00317.81
8.1.00.0000.00917.81
8.0.300.0060.00321.88
8.0.290.0040.00417.25
8.0.280.0030.00518.80
8.0.270.0030.00317.50
8.0.260.0000.00817.23
8.0.250.0000.00717.27
8.0.240.0030.00617.52
8.0.230.0050.00217.49
8.0.220.0000.00717.18
8.0.210.0000.00717.37
8.0.200.0030.00317.21
8.0.190.0000.00717.45
8.0.180.0000.00717.41
8.0.170.0080.00017.35
8.0.160.0000.00817.39
8.0.150.0040.00417.19
8.0.140.0040.00417.28
8.0.130.0060.00013.73
8.0.120.0080.00017.25
8.0.110.0080.00017.42
8.0.100.0040.00417.30
8.0.90.0000.00817.40
8.0.80.0100.01017.23
8.0.70.0040.00417.48
8.0.60.0050.00317.32
8.0.50.0080.00017.44
8.0.30.0090.00917.61
8.0.20.0130.00917.73
8.0.10.0050.00317.28
8.0.00.0150.00317.09
7.4.330.0070.00015.55
7.4.320.0020.00517.08
7.4.300.0060.00017.18
7.4.290.0030.00717.17
7.4.280.0040.00417.15
7.4.270.0030.00517.14
7.4.260.0040.00417.16
7.4.250.0030.00617.17
7.4.240.0040.00417.20
7.4.230.0000.00817.31
7.4.220.0140.00316.95
7.4.210.0120.00917.25
7.4.200.0000.00717.11
7.4.160.0100.00817.06
7.4.150.0140.00717.40
7.4.140.0120.00617.86
7.4.130.0110.00817.07
7.4.120.0100.00917.05
7.4.110.0120.00617.09
7.4.100.0310.02117.09
7.4.90.0080.01116.92
7.4.80.0060.01119.39
7.4.70.0160.00616.86
7.4.60.0070.01117.27
7.4.50.0040.01216.92
7.4.40.0030.01417.21
7.4.30.0120.00616.95
7.4.10.0070.01015.21
7.4.00.0090.00915.44
7.3.330.0000.00513.99
7.3.320.0030.00313.98
7.3.310.0040.00416.90
7.3.300.0040.00416.89
7.3.290.0050.01116.91
7.3.280.0070.01216.89
7.3.270.0080.00917.40
7.3.260.0110.01016.99
7.3.250.0180.00317.04
7.3.240.0120.01116.96
7.3.230.0100.00617.06
7.3.210.0070.01016.97
7.3.200.0130.01016.89
7.3.190.0060.01617.14
7.3.180.0110.01116.96
7.3.170.0050.01617.21
7.3.160.0070.01216.75
7.3.130.0070.01015.07
7.3.120.0060.01315.07
7.3.110.0030.01315.13
7.3.100.0040.01115.43
7.3.90.0070.01015.22
7.3.80.0070.01115.20
7.3.70.0100.00315.12
7.3.60.0070.00715.15
7.3.50.0080.00315.09
7.3.40.0030.00814.94
7.3.30.0070.00715.02
7.3.20.0060.00916.96
7.3.10.0110.00316.85
7.3.00.0070.00716.91
7.2.330.0110.01417.18
7.2.320.0150.00717.18
7.2.310.0110.00717.24
7.2.300.0070.01117.24
7.2.290.0150.00617.32
7.2.260.0060.01315.51
7.2.250.0000.02015.24
7.2.240.0060.00915.29
7.2.230.0060.01015.48
7.2.220.0030.01515.71
7.2.210.0000.01615.60
7.2.200.0040.01415.52
7.2.190.0100.00715.19
7.2.180.0000.01215.18
7.2.170.0080.00815.46
7.2.160.0090.00015.36
7.2.150.0030.00917.38
7.2.140.0030.00717.14
7.2.130.0030.01217.31
7.2.120.0030.00917.09
7.2.110.0060.00617.32
7.2.100.0030.01316.99
7.2.90.0000.01517.14
7.2.80.0100.00317.18
7.2.70.0070.01017.30
7.2.60.0060.00917.32
7.2.50.0070.00717.27
7.2.40.0070.01017.48
7.2.30.0000.01717.35
7.2.20.0040.00817.14
7.2.10.0030.01017.15
7.2.00.0130.00017.22
7.1.330.0000.01616.25
7.1.320.0030.00916.05
7.1.310.0040.01116.23
7.1.300.0030.00915.90
7.1.290.0060.00916.09
7.1.280.0090.00616.10
7.1.270.0040.00715.88
7.1.260.0030.00616.25
7.1.250.0140.00316.07
7.1.240.0120.00316.16
7.1.230.0030.00616.06
7.1.220.0030.01315.98
7.1.210.0080.00416.06
7.1.200.0060.00816.16
7.1.190.0100.00616.18
7.1.180.0030.01416.18
7.1.170.0070.01016.07
7.1.160.0030.01316.09
7.1.150.0100.00716.18
7.1.140.0060.00916.23
7.1.130.0030.01015.92
7.1.120.0000.01016.12
7.1.110.0070.00716.25
7.1.100.0080.00416.23
7.1.90.0040.00716.21
7.1.80.0040.00816.18
7.1.70.0020.00916.88
7.1.60.0060.00416.78
7.1.50.0100.00316.25
7.1.40.0110.00316.05
7.1.30.0100.00616.07
7.1.20.0090.00616.07
7.1.10.0080.00416.18
7.1.00.0050.04019.37
7.0.330.0030.00615.68
7.0.320.0030.01315.56
7.0.310.0040.00815.77
7.0.300.0070.01015.50
7.0.290.0070.00415.89
7.0.280.0060.01015.54
7.0.270.0120.00015.66
7.0.260.0070.01015.78
7.0.250.0060.00615.72
7.0.240.0000.01515.86
7.0.230.0030.01015.76
7.0.220.0040.00815.80
7.0.210.0030.01015.71
7.0.200.0100.00615.46
7.0.190.0030.00915.88
7.0.180.0070.00716.00
7.0.170.0090.00315.96
7.0.160.0110.00415.74
7.0.150.0000.00915.77
7.0.140.0030.01015.94
7.0.130.0050.04018.93
7.0.120.0080.03319.05
7.0.110.0070.03719.13
7.0.100.0080.03018.93
7.0.90.0100.02919.08
7.0.80.0120.03018.95
7.0.70.0060.04119.06
7.0.60.0040.03419.01
7.0.50.0050.03919.17
7.0.40.0070.03318.11
7.0.30.0020.03518.10
7.0.20.0050.04517.99
7.0.10.0070.03618.03
7.0.00.0140.03018.11
5.6.400.0000.01314.44
5.6.390.0090.00614.71
5.6.380.0040.01514.75
5.6.370.0000.01214.97
5.6.360.0060.00914.85
5.6.350.0070.00714.33
5.6.340.0080.00814.95
5.6.330.0060.00915.06
5.6.320.0080.00514.79
5.6.310.0040.01114.79
5.6.300.0030.01214.40
5.6.290.0110.00414.53
5.6.280.0060.03217.81
5.6.270.0060.03517.85
5.6.260.0080.03817.84
5.6.250.0090.02818.02
5.6.240.0090.04317.90
5.6.230.0050.04117.93
5.6.220.0080.03117.79
5.6.210.0050.03217.96
5.6.200.0080.03817.76
5.6.190.0020.04117.87
5.6.180.0080.03317.88
5.6.170.0070.03717.87
5.6.160.0020.04018.06
5.6.150.0050.03917.78
5.6.140.0060.03617.90
5.6.130.0100.03017.95
5.6.120.0140.03218.05
5.6.110.0050.03318.04
5.6.100.0050.03517.86
5.6.90.0020.03817.75
5.6.80.0090.02817.46
5.6.70.0060.03517.69
5.6.60.0110.03517.56
5.6.50.0060.03617.47
5.6.40.0020.03917.59
5.6.30.0120.04417.43
5.6.20.0110.03517.54
5.6.10.0030.03517.73
5.6.00.0070.03317.47

preferences:
53.2 ms | 401 KiB | 5 Q