3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dati2 = "<PDresponse> <isStatusOK>true</isStatusOK> <status>0</status> <payLoad> </payLoad> </PDresponse>"; $response = html_entity_decode($dati2); $xmlString = preg_replace("/(<\/?)(\w+):([^>]*>)/", "$1$2$3", $response); /* adesso posso usare simplexml */ $xmlString = trim(preg_replace('/<\?xml.*\?>/', '', $xmlString, 1)); $xml = simplexml_load_string($xmlString,'SimpleXMLElement', LIBXML_NOCDATA); //print_r($xml); /* Verifico che il messaggio non sia ancora sporco, si sa mai*/ if($xml->soapenvBody->sendMessageResponse->sendMessageReturn != NULL) $xml = simplexml_load_string($xml->soapenvBody->sendMessageResponse->sendMessageReturn); //print_r($xml); if(strtolower($xml->isStatusOK) == "true") $hl7mess = $xml->payLoad->{'ADR_A19'}; else echo "errore"; print_r($hl7mess);

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.00818.90
8.3.50.0090.01222.16
8.3.40.0070.00719.05
8.3.30.0080.00819.04
8.3.20.0080.00020.41
8.3.10.0040.00422.09
8.3.00.0040.00422.64
8.2.180.0130.01316.63
8.2.170.0120.00322.96
8.2.160.0100.00320.64
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0110.00017.63
8.2.110.0060.00322.36
8.2.100.0070.00418.28
8.2.90.0000.00819.30
8.2.80.0000.00818.15
8.2.70.0040.00417.88
8.2.60.0000.00918.13
8.2.50.0000.00818.07
8.2.40.0060.00318.47
8.2.30.0040.00418.29
8.2.20.0000.00718.01
8.2.10.0000.00819.85
8.2.00.0000.00818.27
8.1.280.0120.00925.92
8.1.270.0040.00422.39
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0060.00324.17
8.1.230.0030.00719.32
8.1.220.0040.00418.04
8.1.210.0040.00418.77
8.1.200.0030.00617.47
8.1.190.0030.00517.65
8.1.180.0000.00818.10
8.1.170.0080.00018.88
8.1.160.0000.00722.30
8.1.150.0000.00818.98
8.1.140.0050.00317.70
8.1.130.0000.00818.03
8.1.120.0040.00417.87
8.1.110.0020.00517.87
8.1.100.0030.00517.84
8.1.90.0000.00817.70
8.1.80.0000.00817.68
8.1.70.0000.00717.80
8.1.60.0030.00617.81
8.1.50.0020.00517.82
8.1.40.0000.00817.89
8.1.30.0000.00817.92
8.1.20.0040.00418.08
8.1.10.0040.00417.74
8.1.00.0040.00417.80
8.0.300.0040.00418.77
8.0.290.0040.00417.43
8.0.280.0030.00318.65
8.0.270.0000.00817.48
8.0.260.0030.00317.23
8.0.250.0000.00717.41
8.0.240.0040.00417.30
8.0.230.0030.00417.47
8.0.220.0030.00317.35
8.0.210.0030.00317.22
8.0.200.0000.00717.26
8.0.190.0040.00417.39
8.0.180.0000.00717.21
8.0.170.0000.00817.28
8.0.160.0000.00817.18
8.0.150.0050.00217.14
8.0.140.0040.00417.16
8.0.130.0030.00313.66
8.0.120.0040.00417.19
8.0.110.0000.00817.18
8.0.100.0000.00717.16
8.0.90.0040.00417.19
8.0.80.0130.00617.27
8.0.70.0030.00517.30
8.0.60.0030.00517.17
8.0.50.0000.00717.19
8.0.30.0120.01017.37
8.0.20.0090.01117.43
8.0.10.0030.00617.42
8.0.00.0150.00717.21
7.4.330.0060.00015.30
7.4.320.0030.00316.86
7.4.300.0030.00616.96
7.4.290.0070.00016.93
7.4.280.0080.00016.91
7.4.270.0030.00317.05
7.4.260.0040.00416.84
7.4.250.0030.00516.98
7.4.240.0020.00516.97
7.4.230.0030.00317.00
7.4.220.0120.00316.81
7.4.210.0060.01116.97
7.4.200.0000.00717.09
7.4.190.0030.00517.14
7.4.160.0110.00716.96
7.4.150.0200.00317.40
7.4.140.0140.00517.86
7.4.130.0100.00816.83
7.4.120.0120.00616.95
7.4.110.0060.01216.96
7.4.100.0070.01316.94
7.4.90.0070.01016.95
7.4.80.0120.00919.39
7.4.70.0090.00916.87
7.4.60.0100.00616.83
7.4.50.0050.00316.73
7.4.40.0060.01022.77
7.4.30.0070.01016.92
7.4.00.0060.00915.44
7.3.330.0060.00013.36
7.3.320.0000.00613.49
7.3.310.0000.00716.41
7.3.300.0040.00416.46
7.3.290.0100.00716.50
7.3.280.0120.00816.63
7.3.270.0110.00717.40
7.3.260.0030.01716.67
7.3.250.0110.01016.77
7.3.240.0030.01616.68
7.3.230.0070.01016.55
7.3.210.0070.01016.98
7.3.200.0030.01919.39
7.3.190.0080.00916.63
7.3.180.0110.00516.69
7.3.170.0060.01116.55
7.3.160.0030.01416.86
7.3.120.0120.00315.26
7.3.10.0140.00716.80
7.3.00.0170.00716.45
7.2.330.0040.01316.71
7.2.320.0060.01316.68
7.2.310.0090.01216.73
7.2.300.0140.00516.89
7.2.290.0060.01016.88
7.2.130.0130.00016.61
7.2.120.0000.01116.58
7.2.110.0160.00316.57
7.2.100.0120.00916.88
7.2.90.0210.00516.76
7.2.80.0150.00916.48
7.2.70.0390.01316.82
7.2.60.0080.01116.76
7.2.50.0370.00916.45
7.2.40.0250.00616.60
7.2.30.0120.00616.59
7.2.20.0100.00516.76
7.2.10.0090.00916.62
7.2.00.0100.00918.28
7.1.250.0080.01215.80
7.1.200.0070.00715.99
7.1.100.0040.00818.62
7.1.70.0040.00417.44
7.1.60.0030.00717.38
7.1.50.0040.00817.01
7.1.00.0030.07722.59
7.0.200.0000.01217.09
7.0.140.0100.06722.06
7.0.60.0030.04021.80
7.0.50.0030.04722.16
7.0.40.0030.05720.26
7.0.30.0070.07720.16
7.0.20.0070.07320.13
7.0.10.0100.05020.23
7.0.00.0030.07020.12
5.6.280.0000.07721.04
5.6.210.0070.07320.55
5.6.200.0070.08021.02
5.6.190.0000.04021.17
5.6.180.0030.04321.03
5.6.170.0070.06021.01
5.6.160.0030.07021.03
5.6.150.0070.07021.03
5.6.140.0100.05321.12
5.6.130.0100.03721.20
5.6.120.0100.06321.11
5.6.110.0070.08021.15
5.6.100.0070.06721.18
5.6.90.0070.08321.05
5.6.80.0030.08020.58
5.6.70.0030.08020.38
5.6.60.0030.08020.38
5.6.50.0000.07720.48
5.6.40.0070.07720.45
5.6.30.0030.07720.45
5.6.20.0100.07020.44
5.6.10.0100.07720.54
5.6.00.0030.07720.37
5.5.350.0030.03320.56
5.5.340.0130.03021.02
5.5.330.0070.05320.85
5.5.320.0030.07020.85
5.5.310.0100.07320.91
5.5.300.0000.08320.76
5.5.290.0000.05321.05
5.5.280.0030.08020.82
5.5.270.0000.08720.75
5.5.260.0030.06720.93
5.5.250.0100.07720.87
5.5.240.0130.07020.43
5.5.230.0030.05720.29
5.5.220.0000.08320.13
5.5.210.0000.08020.14
5.5.200.0000.07320.11
5.5.190.0070.08020.16
5.5.180.0100.07720.22
5.5.160.0070.04720.14
5.5.150.0070.07320.07
5.5.140.0000.04720.29
5.5.130.0070.05020.36
5.5.120.0030.05720.10
5.5.110.0000.04020.21
5.5.100.0030.05720.15
5.5.90.0070.04320.10
5.5.80.0030.07320.15
5.5.70.0070.03720.21
5.5.60.0000.04020.02
5.5.50.0100.05019.99
5.5.40.0030.03720.17
5.5.30.0070.07720.07
5.5.20.0100.07020.05
5.5.10.0000.05720.01
5.5.00.0030.04019.97
5.4.450.0100.07719.60
5.4.440.0000.08719.62
5.4.430.0070.07319.50
5.4.420.0030.03719.46
5.4.410.0000.08019.14
5.4.400.0030.07719.03
5.4.390.0070.05019.00
5.4.380.0000.07718.94
5.4.370.0030.07019.13
5.4.360.0070.07719.18
5.4.350.0100.06019.14
5.4.340.0100.07318.93
5.4.320.0000.05019.30
5.4.310.0070.06319.17
5.4.300.0030.08019.33
5.4.290.0030.07319.12
5.4.280.0030.04319.12
5.4.270.0030.03719.01
5.4.260.0100.07319.07
5.4.250.0000.05019.31
5.4.240.0000.04718.91
5.4.230.0000.08019.13
5.4.220.0000.04019.23
5.4.210.0000.05019.33
5.4.200.0070.04318.99
5.4.190.0000.07319.22
5.4.180.0030.04719.17
5.4.170.0000.04718.99
5.4.160.0000.03318.98
5.4.150.0070.07019.05
5.4.140.0030.04716.53
5.4.130.0070.03316.45
5.4.120.0030.07316.47
5.4.110.0000.07016.43
5.4.100.0030.06316.48
5.4.90.0070.07316.51
5.4.80.0030.06016.51
5.4.70.0030.07016.41
5.4.60.0070.07316.39
5.4.50.0030.07016.34
5.4.40.0030.06316.46
5.4.30.0070.07316.57
5.4.20.0030.07316.47
5.4.10.0070.06316.48
5.4.00.0030.06015.73
5.3.290.0000.08314.65
5.3.280.0070.03314.65
5.3.270.0000.04714.63
5.3.260.0000.03714.63
5.3.250.0070.07314.65
5.3.240.0000.04714.63
5.3.230.0000.04714.65
5.3.220.0030.05714.56
5.3.210.0000.08014.62
5.3.200.0100.07014.48
5.3.190.0030.07314.62
5.3.180.0030.06014.61
5.3.170.0030.06314.70
5.3.160.0000.07714.58
5.3.150.0070.07014.55
5.3.140.0000.07014.61
5.3.130.0130.06714.46
5.3.120.0100.07014.60
5.3.110.0000.05014.44
5.3.100.0030.07014.07
5.3.90.0000.07314.07
5.3.80.0030.06314.05
5.3.70.0030.05013.87
5.3.60.0070.06314.00
5.3.50.0070.07014.04
5.3.40.0000.07313.78
5.3.30.0000.06713.82
5.3.20.0030.06713.73
5.3.10.0130.05713.73
5.3.00.0030.07713.57
5.2.170.0030.06311.13
5.2.160.0000.04311.17
5.2.150.0070.05011.23
5.2.140.0000.06711.24
5.2.130.0070.06011.09
5.2.120.0000.04011.00
5.2.110.0000.05011.18
5.2.100.0000.06011.15
5.2.90.0000.05011.16
5.2.80.0000.05711.02
5.2.70.0030.06711.08
5.2.60.0030.06011.13
5.2.50.0070.06011.19
5.2.40.0000.06011.04
5.2.30.0030.06310.89
5.2.20.0030.06010.93
5.2.10.0030.05011.02
5.2.00.0030.05710.93
5.1.60.0000.05310.41
5.1.50.0000.05310.41
5.1.40.0000.04710.41
5.1.30.0100.04310.45
5.1.20.0100.05310.41
5.1.10.0030.06010.41
5.1.00.0030.05010.41
5.0.50.0070.04010.41
5.0.40.0030.04310.41
5.0.30.0000.07010.41
5.0.20.0000.04310.41
5.0.10.0070.04010.41
5.0.00.0030.06710.41
4.4.90.0030.03310.41
4.4.80.0000.03710.41
4.4.70.0070.03010.41
4.4.60.0070.02310.41
4.4.50.0030.03710.41
4.4.40.0000.05710.41
4.4.30.0030.03310.41
4.4.20.0000.03310.41
4.4.10.0030.03010.41
4.4.00.0000.06010.41
4.3.110.0070.03010.41
4.3.100.0000.03710.41
4.3.90.0030.03310.41
4.3.80.0030.05010.41
4.3.70.0000.03010.41
4.3.60.0000.03010.41
4.3.50.0000.03310.41
4.3.40.0000.05310.41
4.3.30.0000.04010.41
4.3.20.0070.03310.41
4.3.10.0000.04010.41
4.3.00.0000.03710.41

preferences:
42.2 ms | 401 KiB | 5 Q