3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a_xml = <<<XML <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://www.example.com/v1/services"> <soapenv:Header/> <soapenv:Body> <ser:getAnalyticalDeliveryEstimatesRequest> <ser:buyer> <ser:buyerId>1233</ser:buyerId> <ser:toCountry>IN</ser:toCountry> <ser:toZip>110001</ser:toZip> </ser:buyer> <ser:item> <ser:id>25164</ser:id> <ser:categoryId>15032</ser:categoryId> <ser:seller> <ser:sellerId>11997</ser:sellerId> <ser:fromCountry>IN</ser:fromCountry> </ser:seller> <ser:transactionId>0</ser:transactionId> </ser:item> </ser:getAnalyticalDeliveryEstimatesRequest> </soapenv:Body> </soapenv:Envelope> XML; $xml = simplexml_load_string( $a_xml ); $xml->registerXPathNamespace('soapenv', 'http://schemas.xmlsoap.org/soap/envelope/'); $xml->registerXPathNamespace('ser', 'http://www.example.com/v1/services'); $xpath = $xml->xpath( '//soapenv:Body/ser:getAnalyticalDeliveryEstimatesRequest' ); $node = $xpath[0]; foreach ( $xpath as $node ) { echo $node->getName(); }

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.01118.68
8.3.50.0120.01022.13
8.3.40.0000.01519.22
8.3.30.0150.00319.46
8.3.20.0080.00020.58
8.3.10.0060.00321.01
8.3.00.0080.00017.75
8.2.180.0070.01525.92
8.2.170.0110.00419.29
8.2.160.0090.00622.96
8.2.150.0070.00025.66
8.2.140.0170.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00422.56
8.2.110.0060.00319.73
8.2.100.0070.00418.22
8.2.90.0040.00418.00
8.2.80.0040.00419.18
8.2.70.0030.00517.88
8.2.60.0030.00618.30
8.2.50.0000.00818.07
8.2.40.0030.00618.54
8.2.30.0000.00718.43
8.2.20.0000.00718.07
8.2.10.0040.00418.44
8.2.00.0040.00418.06
8.1.280.0070.01425.92
8.1.270.0080.00024.66
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0040.00422.52
8.1.230.0060.00619.54
8.1.220.0030.00518.03
8.1.210.0040.00418.77
8.1.200.0000.01017.72
8.1.190.0000.00817.50
8.1.180.0000.00819.67
8.1.170.0040.00419.03
8.1.160.0060.00319.29
8.1.150.0040.00419.21
8.1.140.0040.00417.80
8.1.130.0030.00317.82
8.1.120.0030.00317.67
8.1.110.0000.00817.89
8.1.100.0000.00717.71
8.1.90.0000.00717.70
8.1.80.0040.00417.90
8.1.70.0000.00817.66
8.1.60.0030.00618.07
8.1.50.0030.00517.97
8.1.40.0000.00817.96
8.1.30.0050.00318.06
8.1.20.0000.00817.85
8.1.10.0080.00018.04
8.1.00.0000.00917.85
8.0.300.0030.00820.29
8.0.290.0040.00417.13
8.0.280.0030.00318.79
8.0.270.0100.00017.26
8.0.260.0030.00317.23
8.0.250.0030.00317.47
8.0.240.0050.00317.24
8.0.230.0050.00317.38
8.0.220.0030.00317.33
8.0.210.0030.00317.40
8.0.200.0040.00417.48
8.0.190.0080.00017.39
8.0.180.0030.00517.23
8.0.170.0000.00817.46
8.0.160.0000.00717.23
8.0.150.0040.00417.25
8.0.140.0030.00317.37
8.0.130.0030.00313.87
8.0.120.0040.00417.44
8.0.110.0000.00717.40
8.0.100.0040.00417.33
8.0.90.0030.00617.33
8.0.80.0090.00617.35
8.0.70.0040.00417.34
8.0.60.0060.00317.32
8.0.50.0040.00417.50
8.0.30.0170.00717.56
8.0.20.0120.00717.56
8.0.10.0030.00517.37
8.0.00.0100.00717.07
7.4.330.0060.00015.44
7.4.320.0050.00217.04
7.4.300.0030.00317.03
7.4.290.0070.00016.94
7.4.280.0100.00216.99
7.4.270.0000.00716.91
7.4.260.0030.00416.98
7.4.250.0040.00416.95
7.4.240.0030.00416.98
7.4.230.0000.00716.93
7.4.220.0060.01217.06
7.4.210.0070.01316.88
7.4.200.0030.00316.98
7.4.160.0080.00816.98
7.4.150.0110.00717.40
7.4.140.0120.00517.86
7.4.130.0080.00816.91
7.4.120.0080.00816.96
7.4.110.0110.00516.81
7.4.100.0130.00617.05
7.4.90.0070.01216.97
7.4.80.0070.01319.39
7.4.70.0060.01216.77
7.4.60.0000.01716.78
7.4.50.0040.00416.70
7.4.40.0060.01217.13
7.4.30.0120.00416.91
7.4.00.0090.00615.13
7.3.330.0070.00013.69
7.3.320.0000.00613.62
7.3.310.0000.00716.89
7.3.300.0000.00716.77
7.3.290.0050.01016.66
7.3.280.0110.00616.69
7.3.270.0180.00017.40
7.3.260.0110.00616.85
7.3.250.0110.00616.76
7.3.240.0090.00917.06
7.3.230.0100.00716.92
7.3.210.0060.01316.71
7.3.200.0150.00819.39
7.3.190.0000.01816.84
7.3.180.0140.00316.92
7.3.170.0120.00616.92
7.3.160.0090.00616.91
7.2.330.0160.00916.80
7.2.320.0130.00316.98
7.2.310.0050.01316.87
7.2.300.0160.00617.10
7.2.290.0140.00616.88
7.2.60.0100.00316.91
7.2.50.0140.00016.93
7.1.200.0030.01016.11
7.1.70.0000.00817.43
7.1.60.0100.01319.12
7.1.50.0160.02035.01
7.1.00.0070.07322.62
7.0.200.0000.01117.08
7.0.140.0070.06722.10
7.0.60.0130.07320.10
7.0.50.0130.07718.00
7.0.40.0000.09320.12
7.0.30.0170.08720.22
7.0.20.0230.05020.39
7.0.10.0130.04720.35
7.0.00.0070.04320.35
5.6.280.0130.06320.99
5.6.210.0030.09320.71
5.6.200.0100.07718.39
5.6.190.0100.05720.85
5.6.180.0300.07320.55
5.6.170.0330.07320.67
5.6.160.0070.04020.64
5.6.150.0070.05318.34
5.6.140.0000.06718.34
5.6.130.0130.06018.39
5.6.120.0130.06321.12
5.6.110.0070.08321.30
5.6.100.0000.08721.27
5.6.90.0100.08021.27
5.6.80.0030.04020.59
5.6.70.4470.04020.56
5.5.350.0270.05320.62
5.5.340.0030.07318.19
5.5.330.0070.07020.41
5.5.320.0230.05320.39
5.5.310.0270.06320.43
5.5.300.0130.05018.16
5.5.290.0000.04318.17
5.5.280.0100.08321.09
5.5.270.0170.04721.16
5.5.260.0070.07721.05
5.5.250.0000.08020.90
5.5.240.0130.06720.32
5.4.450.0230.04319.45
5.4.440.0400.04019.45
5.4.430.0330.03319.45
5.4.420.0070.04319.45
5.4.410.0370.03719.55
5.4.400.0330.03719.45
5.4.390.1230.05019.20
5.4.380.0400.07718.63
5.4.370.0330.05318.77
5.4.360.0270.06018.68
5.4.350.0330.05018.85
5.4.340.0300.06718.68
5.4.320.0060.03512.73
5.4.310.0060.03712.72
5.4.300.0040.04012.73
5.4.290.0030.04012.73
5.4.280.0070.03412.62
5.4.270.0060.03612.62
5.4.260.0040.04012.62
5.4.250.0040.03912.62
5.4.240.0080.03412.62
5.4.230.0080.03812.61
5.4.220.0060.03812.61
5.4.210.0040.03712.61
5.4.200.0080.03512.61
5.4.190.0080.03712.61
5.4.180.0070.03312.61
5.4.170.0080.04012.62
5.4.160.0090.03912.62
5.4.150.0070.03612.61
5.4.140.0070.03512.29
5.4.130.0050.03612.29
5.4.120.0040.03712.24
5.4.110.0090.03312.23
5.4.100.0060.03612.24
5.4.90.0070.03712.24
5.4.80.0040.04212.24
5.4.70.0060.03412.23
5.4.60.0010.03912.23
5.4.50.0050.03812.23
5.4.40.0070.03412.21
5.4.30.0050.03612.22
5.4.20.0060.03512.21
5.4.10.0080.03712.22
5.4.00.0040.03811.70
5.3.290.0070.03912.98
5.3.280.0060.03812.91
5.3.270.0030.04112.93
5.3.260.0040.04212.93
5.3.250.0060.03712.93
5.3.240.0080.03512.92
5.3.230.0070.03712.92
5.3.220.0050.03812.89
5.3.210.0050.04112.89
5.3.200.0050.03712.89
5.3.190.0030.04012.89
5.3.180.0070.03512.89
5.3.170.0060.03712.88
5.3.160.0080.03612.88
5.3.150.0100.03512.88
5.3.140.0060.03612.87
5.3.130.0070.03712.87
5.3.120.0050.03912.87
5.3.110.0060.04012.87
5.3.100.0060.03712.35
5.3.90.0050.03712.34
5.3.80.0080.04112.33
5.3.70.0060.03712.33
5.3.60.0070.03512.31
5.3.50.0050.03712.26
5.3.40.0070.03412.26
5.3.30.0080.03212.22
5.3.20.0050.03512.00
5.3.10.0110.03411.96
5.3.00.0110.03611.95
5.2.170.0030.0319.45
5.2.160.0040.0299.45
5.2.150.0060.0299.46
5.2.140.0040.0309.45
5.2.130.0060.0289.41
5.2.120.0080.0259.41
5.2.110.0040.0309.42
5.2.100.0060.0289.41
5.2.90.0060.0299.41
5.2.80.0080.0289.41
5.2.70.0040.0379.41
5.2.60.0070.0279.36
5.2.50.0060.0289.32
5.2.40.0030.0309.30
5.2.30.0060.0309.28
5.2.20.0040.0349.30
5.2.10.0020.0299.22
5.2.00.0060.0279.07
5.1.60.0060.0268.36
5.1.50.0030.0308.36
5.1.40.0030.0258.34
5.1.30.0040.0258.69
5.1.20.0040.0268.71
5.1.10.0050.0258.44
5.1.00.0040.0258.44
5.0.50.0030.0206.82
5.0.40.0050.0176.68
5.0.30.0050.0296.50
5.0.20.0040.0196.47
5.0.10.0030.0216.45
5.0.00.0060.0326.44
4.4.90.0020.0234.78
4.4.80.0040.0204.75
4.4.70.0030.0154.76
4.4.60.0050.0134.76
4.4.50.0030.0164.77
4.4.40.0050.0244.71
4.4.30.0020.0174.76
4.4.20.0030.0164.84
4.4.10.0030.0164.85
4.4.00.0060.0244.76
4.3.110.0030.0154.67
4.3.100.0030.0144.67
4.3.90.0020.0154.63
4.3.80.0040.0234.58
4.3.70.0030.0144.63
4.3.60.0000.0174.63
4.3.50.0030.0154.63
4.3.40.0020.0254.54
4.3.30.0020.0163.31
4.3.20.0030.0153.29
4.3.10.0040.0143.24
4.3.00.0100.01319.45

preferences:
41.01 ms | 401 KiB | 5 Q