3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = ' <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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.opentravel.org/OTA/2003/05 OTA_HotelResNotifRQ.xsd" TimeStamp="2017-04-25T13:54:59+02:00" Version="1.003" EchoToken="58ff3910062c0"> <Success /> <HotelReservations> <HotelReservation> <UniqueID Type="14" ID="24671-CH108B541" /> <ResGlobalInfo> <HotelReservationIDs> <HotelReservationID ResID_Type="14" ResID_Value="24671-CH108B541" /> </HotelReservationIDs> </ResGlobalInfo> </HotelReservation> </HotelReservations> </OTA_HotelResNotifRS> </SOAP-ENV:Body> </SOAP-ENV:Envelope> '; function getProviderReferenceCode($response) { $response = $this->getOtaReservationService()->parseReservationResponseXML($response); if (!empty($response['OTA_HotelResNotifRS']) && !array_key_exists('Success', $response['OTA_HotelResNotifRS'])) { return false; } $providerReferenceCode = (isset($response['OTA_HotelResNotifRS']['HotelReservations']['HotelReservation']['ResGlobalInfo']['HotelReservationIDs']['HotelReservationID']['@attributes']['ResID_Value'])) ? $response['OTA_HotelResNotifRS']['HotelReservations']['HotelReservation']['ResGlobalInfo']['HotelReservationIDs']['HotelReservationID']['@attributes']['ResID_Value'] : false; if (!$providerReferenceCode) { return false; } return $providerReferenceCode; } var_dump(getProviderReferenceCode($xml));

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.0180.00016.50
8.3.50.0160.00521.20
8.3.40.0070.00718.76
8.3.30.0040.01218.79
8.3.20.0070.00020.25
8.3.10.0040.00421.76
8.3.00.0040.00417.79
8.2.180.0070.01116.50
8.2.170.0090.00922.96
8.2.160.0070.00721.04
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0000.00822.00
8.2.120.0040.00426.35
8.2.110.0030.00722.20
8.2.100.0060.00617.88
8.2.90.0030.00618.16
8.2.80.0000.00920.48
8.2.70.0040.00417.63
8.2.60.0000.00717.93
8.2.50.0050.00318.10
8.2.40.0080.00020.23
8.2.30.0040.00419.12
8.2.20.0050.00318.05
8.2.10.0090.00018.29
8.2.00.0040.00418.30
8.1.280.0100.00325.92
8.1.270.0070.00723.86
8.1.260.0050.00326.35
8.1.250.0030.00528.09
8.1.240.0000.00923.80
8.1.230.0070.00420.84
8.1.220.0000.00917.74
8.1.210.0030.00518.77
8.1.200.0090.00016.99
8.1.190.0000.00917.23
8.1.180.0070.00018.10
8.1.170.0030.00618.50
8.1.160.0080.00018.70
8.1.150.0090.00020.12
8.1.140.0050.00319.50
8.1.130.0070.00018.92
8.1.120.0000.00717.39
8.1.110.0030.00517.29
8.1.100.0040.00417.39
8.1.90.0040.00417.41
8.1.80.0040.00417.39
8.1.70.0030.00317.42
8.1.60.0000.00717.44
8.1.50.0050.00317.48
8.1.40.0050.00217.48
8.1.30.0070.00017.53
8.1.20.0040.00417.67
8.1.10.0000.00817.60
8.1.00.0050.00217.43
8.0.300.0040.00420.16
8.0.290.0000.00816.75
8.0.280.0070.00018.30
8.0.270.0000.00717.25
8.0.260.0000.00619.02
8.0.250.0040.00416.86
8.0.240.0040.00416.88
8.0.230.0060.00316.91
8.0.220.0030.00316.88
8.0.210.0080.00016.77
8.0.200.0000.00616.84
8.0.190.0040.00416.84
8.0.180.0050.00316.79
8.0.170.0040.00416.87
8.0.160.0040.00316.91
8.0.150.0070.00016.86
8.0.140.0000.00716.82
8.0.130.0030.00313.36
8.0.120.0000.00816.77
8.0.110.0030.00516.79
8.0.100.0000.00716.71
8.0.90.0000.00716.76
8.0.80.0060.00916.84
8.0.70.0050.00216.80
8.0.60.0070.00016.73
8.0.50.0000.00716.95
8.0.30.0080.01116.99
8.0.20.0110.01217.40
8.0.10.0000.00716.83
8.0.00.0140.00616.49
7.4.330.0030.00315.55
7.4.320.0000.00616.48
7.4.300.0000.00716.62
7.4.290.0000.00916.67
7.4.280.0050.00316.52
7.4.270.0030.00316.67
7.4.260.0030.00316.38
7.4.250.0080.00016.55
7.4.240.0030.00516.50
7.4.230.0030.00316.64
7.4.220.0140.00516.45
7.4.210.0070.00816.56
7.4.200.0050.00216.49
7.4.160.0070.00916.47
7.4.150.0110.00717.40
7.4.140.0120.00917.86
7.4.130.0060.01116.50
7.4.120.0110.00916.45
7.4.110.0080.00816.43
7.4.100.0040.01716.33
7.4.90.0130.00616.37
7.4.80.0090.00919.39
7.4.70.0050.01116.61
7.4.60.0060.00916.52
7.4.50.0090.00616.32
7.4.40.0110.01116.61
7.4.30.0040.01516.59
7.4.10.0070.01114.68
7.4.00.0030.01214.93
7.3.330.0030.00313.43
7.3.320.0000.00513.18
7.3.310.0070.00016.22
7.3.300.0030.00316.25
7.3.290.0000.00716.23
7.3.280.0110.01016.29
7.3.270.0030.01417.40
7.3.260.0140.00716.47
7.3.250.0130.00616.29
7.3.240.0090.00916.32
7.3.230.0070.01016.27
7.3.210.0050.01416.32
7.3.200.0140.00316.25
7.3.190.0070.01016.52
7.3.180.0080.00816.45
7.3.170.0050.01016.58
7.3.160.0090.00616.27
7.3.130.0040.01114.96
7.3.120.0030.01614.98
7.3.110.0070.01114.85
7.3.100.0100.00714.85
7.3.90.0120.00014.75
7.3.80.0040.01215.14
7.3.70.0070.00714.89
7.3.60.0090.00914.85
7.3.50.0030.01314.55
7.3.40.0070.00414.87
7.3.30.0070.01014.68
7.3.20.0030.01316.78
7.3.10.0090.00316.66
7.3.00.0070.01016.35
7.2.330.0000.01616.57
7.2.320.0130.00316.69
7.2.310.0050.01116.53
7.2.300.0070.01116.63
7.2.290.0130.00316.28
7.2.260.0100.00714.97
7.2.250.0080.01114.86
7.2.240.0000.01515.17
7.2.230.0030.00914.65
7.2.220.0000.00914.72
7.2.210.0090.00615.18
7.2.200.0040.00714.80
7.2.190.0000.01914.96
7.2.180.0120.00915.05
7.2.170.0030.00615.02
7.2.160.0030.00714.90
7.2.150.0060.01016.75
7.2.140.0090.00316.86
7.2.130.0040.01216.51
7.2.120.0100.00616.85
7.2.110.0060.00916.73
7.2.100.0070.00716.74
7.2.90.0090.00616.82
7.2.80.0070.00716.63
7.2.70.0110.01116.91
7.2.60.0120.00716.85
7.2.50.0060.01016.93
7.2.40.0060.00616.90
7.2.30.0030.00716.90
7.2.20.0070.01016.66
7.2.10.0090.00616.68
7.2.00.0050.00717.90
7.1.330.0000.01315.71
7.1.320.0130.00315.45
7.1.310.0090.00615.78
7.1.300.0030.01215.64
7.1.290.0030.01615.58
7.1.280.0100.00315.70
7.1.270.0050.00515.73
7.1.260.0120.00615.68
7.1.250.0060.00915.64
7.1.240.0000.01215.64
7.1.230.0060.00315.65
7.1.220.0030.01215.62
7.1.210.0070.00715.42
7.1.200.0070.00515.77
7.1.190.0100.00715.63
7.1.180.0040.00815.74
7.1.170.0000.01615.87
7.1.160.0070.00715.79
7.1.150.0000.01315.55
7.1.140.0030.01015.57
7.1.130.0040.01115.61
7.1.120.0030.01015.75
7.1.110.0000.01515.61
7.1.100.0030.01015.73
7.1.90.0090.00615.39
7.1.80.0000.01715.82
7.1.70.0070.00616.52
7.1.60.0040.00916.31
7.1.50.0080.00316.02
7.1.40.0080.01624.91
7.1.30.0100.01224.89
7.1.20.0120.01225.04
7.1.10.0000.01515.99
7.1.00.0080.00716.00
7.0.330.0140.00015.14
7.0.320.0060.00915.61
7.0.310.0030.00615.08
7.0.300.0030.00715.31
7.0.290.0040.01115.47
7.0.280.0070.00715.37
7.0.270.0070.00715.37
7.0.260.0030.01015.36
7.0.250.0040.00715.45
7.0.240.0030.01315.14
7.0.230.0060.00615.50
7.0.220.0060.01015.42
7.0.210.0000.00915.53
7.0.200.0080.00615.99
7.0.190.0070.00315.45
7.0.180.0050.00915.56
7.0.170.0020.01115.73
7.0.160.0050.01015.57
7.0.150.0050.00915.66
7.0.140.0100.00515.63
7.0.130.0070.00816.00
7.0.120.0070.00715.92
7.0.110.0020.01415.78
7.0.100.0080.00815.90
7.0.90.0040.00715.83
7.0.80.0060.00715.88
7.0.70.0030.01015.80
7.0.60.0030.01415.50
7.0.50.0080.00715.81
7.0.40.0050.00914.75
7.0.30.0070.00914.88
7.0.20.0040.01014.69
7.0.10.0220.01313.85
7.0.00.0350.01114.05
5.6.400.0090.00314.43
5.6.390.0040.01114.05
5.6.380.0040.01014.13
5.6.370.0000.01314.33
5.6.360.0090.00314.48
5.6.350.0000.01014.48
5.6.340.0060.00914.49
5.6.330.0000.01214.22
5.6.320.0140.00014.40
5.6.310.0000.01014.47
5.6.300.0030.00714.11
5.6.290.0030.01014.08
5.6.280.0100.00314.34
5.6.270.0090.00614.39
5.6.260.0030.01314.48
5.6.250.0070.00414.33
5.6.240.0040.00813.96
5.6.230.0070.00714.20
5.6.220.0030.01314.07
5.6.210.0030.01014.25
5.6.200.0030.01213.90
5.6.190.0040.01114.28
5.6.180.0000.01314.19
5.6.170.0080.00814.36
5.6.160.0070.00414.17
5.6.150.0090.00614.47
5.6.140.0060.00614.45
5.6.130.0120.00314.55
5.6.120.0100.00714.19
5.6.110.0070.01014.28
5.6.100.0110.00714.20
5.6.90.0100.00714.27
5.6.80.0030.00514.30
5.6.70.0040.00814.23
5.6.60.0030.00614.05
5.6.50.0030.01014.42
5.6.40.0070.00314.23
5.6.30.0090.00414.07
5.6.20.0060.00614.32
5.6.10.0110.00414.12
5.6.00.0040.01114.36

preferences:
33.89 ms | 401 KiB | 5 Q