3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = '{"Request headers":"POST /VALKTEST/V1.1.5-V491/service.asmx HTTP/1.1\r\nHost: testcwi.itsrezexchange.net\r\nConnection: Keep-Alive\r\nUser-Agent: PHP-SOAP/5.6.24\r\nContent-Type: text/xml; charset=utf-8\r\nSOAPAction: \"http://hotelconcepts.com/CwiModifyReservation\"\r\nContent-Length: 2816\r\n\r\n","Request body":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns1=\"http://hotelconcepts.com/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><SOAP-ENV:Header><ns1:Authentication><ns1:User>VDCCWIAZ</ns1:User><ns1:Password>AZ_1029!</ns1:Password><ns1:CrsProperty>VDC</ns1:CrsProperty></ns1:Authentication></SOAP-ENV:Header><SOAP-ENV:Body><ns1:CwiModifyReservation><ns1:Reservation><ns1:ConfirmationNumber>HBR-FX900898</ns1:ConfirmationNumber><ns1:PropertyCode>BRE</ns1:PropertyCode><ns1:ArrivalDate>2017-02-25T00:00:00+00:00</ns1:ArrivalDate><ns1:DepartDate>2017-02-26T00:00:00+00:00</ns1:DepartDate><ns1:Rooms>1</ns1:Rooms><ns1:Adults>2</ns1:Adults><ns1:Children>0</ns1:Children><ns1:Infants>0</ns1:Infants><ns1:RatePlan>TARIEF1</ns1:RatePlan><ns1:Mealplan>LG</ns1:Mealplan><ns1:RoomType>SUITE</ns1:RoomType><ns1:Reference>Online</ns1:Reference><ns1:Tentative>false</ns1:Tentative><ns1:OptionDate xsi:nil=\"true\"/><ns1:PaymentType>ER</ns1:PaymentType><ns1:Guarantee><ns1:GuaranteeCode>BETAALD</ns1:GuaranteeCode><ns1:GuaranteeType>AllChargesAR</ns1:GuaranteeType></ns1:Guarantee><ns1:Guest><ns1:LastName>Maat</ns1:LastName><ns1:FirstName>Michael</ns1:FirstName><ns1:Prefix></ns1:Prefix><ns1:Address id=\"ref1\"><ns1:Phone>0644745027</ns1:Phone></ns1:Address><ns1:Authentication><ns1:UserName>Maat-Michael0644745027</ns1:UserName><ns1:Password>0644745027</ns1:Password></ns1:Authentication><ns1:EmailAddress>michael@aanzee.nl</ns1:EmailAddress><ns1:IncludeInMailing>false</ns1:IncludeInMailing><ns1:LanguageCode>nl</ns1:LanguageCode><ns1:FrequentStayNumber>67101</ns1:FrequentStayNumber><ns1:FrequentStayType>VA</ns1:FrequentStayType><ns1:VipCategory>VA</ns1:VipCategory><ns1:DateOfBirth>1999-02-01</ns1:DateOfBirth></ns1:Guest><ns1:Booker><ns1:LastName>Maat</ns1:LastName><ns1:FirstName>Michael</ns1:FirstName><ns1:Prefix></ns1:Prefix><ns1:Title>MR</ns1:Title><ns1:Address href=\"#ref1\"/><ns1:Authentication><ns1:UserName>Maat-Michael0644745027</ns1:UserName><ns1:Password>0644745027</ns1:Password></ns1:Authentication><ns1:EmailAddress>michael@aanzee.nl</ns1:EmailAddress><ns1:IncludeInMailing>false</ns1:IncludeInMailing><ns1:LanguageCode>nl</ns1:LanguageCode><ns1:FrequentStayNumber>67101</ns1:FrequentStayNumber><ns1:FrequentStayType>VA</ns1:FrequentStayType><ns1:VipCategory>VA</ns1:VipCategory><ns1:DateOfBirth>1999-02-01</ns1:DateOfBirth></ns1:Booker><ns1:Extras/><ns1:Comments> - Booker name: Michael Maat\n - Valk Account ID: 67101\n</ns1:Comments><ns1:ReservationBalance>0</ns1:ReservationBalance><ns1:CroFolio>20183</ns1:CroFolio><ns1:CroReference>20183</ns1:CroReference></ns1:Reservation><ns1:OverridePassword>V@lkInternet!</ns1:OverridePassword><ns1:Language>nl</ns1:Language></ns1:CwiModifyReservation></SOAP-ENV:Body></SOAP-ENV:Envelope>\n","Response headers":"HTTP/1.1 200 OK\r\nCache-Control: private, max-age=0\r\nContent-Length: 510\r\nContent-Type: text/xml; charset=utf-8\r\nServer: Microsoft-IIS/8.5\r\nX-AspNet-Version: 4.0.30319\r\nX-Powered-By: ASP.NET\r\nDate: Wed, 01 Feb 2017 14:28:01 GMT\r\n","Response body":"<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><CwiModifyReservationResponse xmlns=\"http://hotelconcepts.com/\"><CwiModifyReservationResult><ErrorInfo><ErrorCode>301</ErrorCode><ErrorMessage>Reservation not found</ErrorMessage><ErrorData /></ErrorInfo></CwiModifyReservationResult></CwiModifyReservationResponse></soap:Body></soap:Envelope>","date-time":"2017-02-01 14:28:01"}'; var_dump(json_decode($tmp, true));

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.0070.00718.43
8.3.50.0070.01019.81
8.3.40.0030.01018.72
8.3.30.0120.00318.54
8.3.20.0060.00321.58
8.3.10.0050.00323.55
8.3.00.0080.00021.95
8.2.180.0100.00718.16
8.2.170.0180.00322.96
8.2.160.0130.00722.02
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0090.00026.16
8.2.120.0110.00018.92
8.2.110.0100.00019.36
8.2.100.0060.00617.92
8.2.90.0060.00319.05
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0050.00317.93
8.2.50.0050.00318.10
8.2.40.0030.00620.59
8.2.30.0030.00618.07
8.2.20.0040.00418.00
8.2.10.0080.00017.93
8.2.00.0040.00417.61
8.1.280.0100.00725.92
8.1.270.0040.00422.14
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0000.01219.00
8.1.230.0080.00317.70
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0040.00418.48
8.1.160.0000.00719.04
8.1.150.0080.00022.05
8.1.140.0040.00419.52
8.1.130.0000.00719.04
8.1.120.0040.00417.38
8.1.110.0110.00017.40
8.1.100.0000.00717.32
8.1.90.0070.00017.34
8.1.80.0000.00717.45
8.1.70.0000.00717.45
8.1.60.0050.00317.46
8.1.50.0000.00817.50
8.1.40.0030.00517.37
8.1.30.0050.00317.60
8.1.20.0040.00417.58
8.1.10.0000.00917.46
8.1.00.0040.00817.39
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0040.00418.44
8.0.270.0030.00317.26
8.0.260.0070.00017.08
8.0.250.0000.00716.92
8.0.240.0040.00416.88
8.0.230.0040.00416.92
8.0.220.0040.00416.77
8.0.210.0040.00416.71
8.0.200.0000.00716.87
8.0.190.0040.00416.93
8.0.180.0000.00816.79
8.0.170.0050.00216.88
8.0.160.0000.00716.78
8.0.150.0040.00416.68
8.0.140.0060.00616.72
8.0.130.0050.00513.30
8.0.120.0070.00016.71
8.0.110.0000.00816.69
8.0.100.0000.00716.86
8.0.90.0040.00416.75
8.0.80.0070.01016.83
8.0.70.0070.00016.80
8.0.60.0040.00416.84
8.0.50.0040.00416.91
8.0.30.0080.01217.08
8.0.20.0150.00717.40
8.0.10.0000.00716.93
8.0.00.0080.00916.59
7.4.330.0000.00515.55
7.4.320.0030.00316.44
7.4.300.0000.00716.40
7.4.290.0000.00716.47
7.4.280.0040.00416.57
7.4.270.0030.00316.53
7.4.260.0030.00616.53
7.4.250.0030.00316.52
7.4.240.0030.00316.56
7.4.230.0000.00816.32
7.4.220.0120.00616.56
7.4.210.0090.00816.40
7.4.200.0070.00016.43
7.4.160.0100.00616.46
7.4.150.0170.00317.40
7.4.140.0130.00717.86
7.4.130.0120.00916.44
7.4.120.0110.00916.42
7.4.110.0040.01416.41
7.4.100.0090.00916.37
7.4.90.0090.00816.39
7.4.80.0150.00319.39
7.4.70.0030.01316.57
7.4.60.0060.01016.52
7.4.50.0110.00316.27
7.4.40.0070.01016.44
7.4.30.0120.00916.60
7.4.00.0070.01014.95
7.3.330.0040.00413.02
7.3.320.0060.00012.89
7.3.310.0000.00716.09
7.3.300.0040.00416.20
7.3.290.0060.00016.14
7.3.280.0100.00516.16
7.3.270.0120.00917.40
7.3.260.0130.00516.18
7.3.250.0150.00716.31
7.3.240.0140.00816.20
7.3.230.0130.00316.30
7.3.210.0030.01616.14
7.3.200.0070.01016.20
7.3.190.0070.01116.39
7.3.180.0030.01616.30
7.3.170.0040.01316.52
7.3.160.0120.00416.16
7.2.330.0130.00816.27
7.2.320.0070.01016.29
7.2.310.0030.01316.38
7.2.300.0100.01416.45
7.2.290.0030.01316.10
7.2.60.0070.00716.54
7.2.00.0070.00719.41
7.1.200.0060.00615.90
7.1.100.0040.00718.13
7.1.70.0040.00416.97
7.1.60.0080.00317.20
7.1.50.0220.01034.48
7.1.10.0100.06322.24
7.1.00.0130.05722.41
7.0.200.0000.00716.41
7.0.150.0070.05721.99
7.0.140.0030.06321.99
7.0.130.0100.05321.93
7.0.120.0100.05321.93
7.0.110.0100.05321.88
7.0.100.0100.05321.91
7.0.90.0130.05321.84
7.0.80.0070.05721.91
7.0.70.0130.05021.92
7.0.60.0030.06021.79
7.0.50.0070.05721.73
7.0.40.0000.06021.93
7.0.30.0030.05721.88
7.0.20.0070.05721.85
7.0.10.0130.05021.91
7.0.00.0100.05321.87

preferences:
59.41 ms | 400 KiB | 5 Q