3v4l.org

run code in 300+ PHP versions simultaneously
<?php $wsdl = <<<'WSDL' <?xml version='1.0' encoding='UTF-8'?> <definitions name="ab" targetNamespace="urn:ab" xmlns:typens="urn:ab" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <types> <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:ab"> <xsd:complexType name="A"> <xsd:sequence> <xsd:element name="x" type="xsd:anyType"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Broken"> <xsd:sequence> <xsd:element name="completelyBroken" type="xsd:anyType"/> </xsd:sequence> </xsd:complexType> </xsd:schema> </types> <message name="f"> <part name="fRequest" type="typens:A"/> </message> <message name="fResponse"> <part name="fRequest" type="typens:A"/> </message> <portType name="abServerPortType"> <operation name="f"> <input message="typens:f"/> <output message="typens:fResponse"/> </operation> </portType> <binding name="abServerBinding" type="typens:abServerPortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="f"> <soap:operation soapAction="urn:abServerAction"/> <input> <soap:body namespace="urn:ab" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body namespace="urn:ab" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <service name="abService"> <port name="abServerPort" binding="typens:abServerBinding"> <soap:address location="http://localhost/dummy"/> </port> </service> </definitions> WSDL; file_put_contents('test.wsdl', $wsdl); function f($a) { return $a; } class LocalSoapClient extends SoapClient { function __construct($wsdl, $options) { parent::__construct($wsdl, $options); $this->server = new SoapServer($wsdl, $options); $this->server->addFunction("f"); } function __doRequest($request, $location, $action, $version, $one_way = 0) { ob_start(); $this->server->handle($request); $response = ob_get_contents(); ob_end_clean(); return $response; } } class Broken { public $completelyBroken; } $client = new LocalSoapClient('test.wsdl', array('classmap' => array('Broken' => 'Broken')) ); $broken = new Broken(); $broken->completelyBroken = 'indeed it is'; print_r($client->f($broken));

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.0120.00318.55
8.3.50.0200.00017.98
8.3.40.0160.00018.73
8.3.30.0120.00619.07
8.3.20.0030.00620.39
8.3.10.0040.00420.48
8.3.00.0070.00319.51
8.2.180.0070.01418.41
8.2.170.0090.00622.96
8.2.160.0100.00319.36
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00422.23
8.2.110.0000.00921.97
8.2.100.0080.00417.84
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0060.00317.92
8.2.50.0040.00418.07
8.2.40.0020.00518.16
8.2.30.0000.00819.38
8.2.20.0040.00417.64
8.2.10.0040.00417.97
8.2.00.0030.00617.92
8.1.270.0090.00023.96
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.96
8.1.230.0000.01119.01
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0100.00017.48
8.1.190.0060.00317.35
8.1.180.0000.00818.10
8.1.170.0100.00018.42
8.1.160.0000.00721.96
8.1.150.0040.00418.99
8.1.140.0040.00417.36
8.1.130.0050.00317.77
8.1.120.0040.00417.41
8.1.110.0000.00817.53
8.1.100.0070.00017.49
8.1.90.0050.00217.51
8.1.80.0080.00317.38
8.1.70.0000.00717.51
8.1.60.0030.00617.62
8.1.50.0040.00917.56
8.1.40.0080.00017.58
8.1.30.0080.00017.73
8.1.20.0000.00717.71
8.1.10.0000.00817.60
8.1.00.0070.00317.51
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0050.00218.48
8.0.270.0070.00017.29
8.0.260.0000.00617.36
8.0.250.0050.00217.04
8.0.240.0000.00716.96
8.0.230.0030.00317.03
8.0.220.0030.00316.86
8.0.210.0030.00516.92
8.0.200.0030.00616.81
8.0.190.0040.00417.07
8.0.180.0000.00717.02
8.0.170.0040.00416.99
8.0.160.0050.00216.99
8.0.150.0000.00716.93
8.0.140.0110.00016.88
8.0.130.0000.00613.40
8.0.120.0040.00416.99
8.0.110.0040.00416.90
8.0.100.0000.00716.95
8.0.90.0050.00216.86
8.0.80.0060.00916.89
8.0.70.0000.00916.84
8.0.60.0000.00716.88
8.0.50.0030.00617.00
8.0.30.0120.01117.28
8.0.20.0100.01317.40
8.0.10.0050.00217.03
8.0.00.0060.01216.73
7.4.330.0000.00515.14
7.4.320.0030.00316.66
7.4.300.0030.00316.64
7.4.290.0100.00016.51
7.4.280.0030.00616.54
7.4.270.0030.00316.45
7.4.260.0030.00316.54
7.4.250.0080.00016.54
7.4.240.0040.00416.59
7.4.230.0030.00316.71
7.4.220.0080.01616.57
7.4.210.0060.00816.52
7.4.200.0070.00016.52
7.4.160.0070.01016.44
7.4.150.0140.00417.40
7.4.140.0080.01317.86
7.4.130.0110.00816.63
7.4.120.0120.00716.60
7.4.110.0030.01416.39
7.4.100.0080.00816.48
7.4.90.0110.00616.72
7.4.80.0120.00419.37
7.4.70.0070.01016.59
7.4.60.0210.00016.45
7.4.50.0050.00316.40
7.4.40.0070.01016.45
7.4.30.0130.00316.64
7.4.00.0100.00614.74
7.3.330.0060.00013.10
7.3.320.0030.00313.24
7.3.310.0000.00716.22
7.3.300.0070.00016.26
7.3.290.0130.00616.28
7.3.280.0040.01316.32
7.3.270.0060.01217.40
7.3.260.0160.01116.72
7.3.250.0140.00716.43
7.3.240.0160.00016.43
7.3.230.0080.00816.39
7.3.210.0100.00616.38
7.3.200.0140.00719.39
7.3.190.0030.01516.46
7.3.180.0040.01216.34
7.3.170.0070.01116.46
7.3.160.0090.01316.45
7.2.330.0100.00716.56
7.2.320.0100.00716.40
7.2.310.0060.01316.42
7.2.300.0120.00916.64
7.2.290.0140.01016.53
7.2.60.0070.01016.90
7.2.00.0000.01219.26
7.1.200.0030.00615.57
7.1.100.0000.01117.83
7.1.70.0040.00417.13
7.1.60.0100.01319.32
7.1.50.0030.02016.57
7.1.00.0070.07322.57
7.0.200.0070.00716.57
7.0.140.0030.07322.16
7.0.100.0130.03719.90
7.0.90.0100.03719.94
7.0.80.0070.07719.93
7.0.70.0130.07719.88
7.0.60.0130.08019.89
7.0.50.0230.05020.39
7.0.40.0170.07020.10
7.0.30.0100.07720.00
7.0.20.0100.08720.04
7.0.10.0130.04720.10
7.0.00.0100.07020.13
5.6.280.0070.07020.93
5.6.250.0000.03720.60
5.6.240.0100.03720.68
5.6.230.0070.04020.60
5.6.220.0100.07020.66
5.6.210.0000.09020.76
5.6.200.0100.08021.05
5.6.190.0070.08021.07
5.6.180.0070.07721.11
5.6.170.0100.06721.02
5.6.160.0100.06721.07
5.6.150.0070.08721.12
5.6.140.0070.08021.10
5.6.130.0170.07721.06
5.6.120.0070.04321.11
5.6.110.0100.04721.04
5.6.100.0070.08321.05
5.6.90.0030.06321.09
5.6.80.0070.08020.45
5.6.70.0100.07320.36
5.6.60.0030.08020.46
5.6.50.0130.07020.46
5.6.40.0130.07020.43
5.6.30.0000.08720.43
5.6.20.0100.04320.39
5.6.10.0130.06320.33
5.6.00.0030.07720.37
5.5.380.0000.04320.36
5.5.370.0030.05320.56
5.5.360.0070.06720.43
5.5.350.0100.08020.38
5.5.340.0070.04020.81
5.5.330.0170.07720.88
5.5.320.0070.08320.81
5.5.310.0100.08020.80
5.5.300.0130.06720.84
5.5.290.0230.05320.91
5.5.280.0100.07720.65
5.5.270.0170.07320.93
5.5.260.0000.05320.93
5.5.250.0030.07720.74
5.5.240.0100.07320.20
5.5.230.0030.06720.03
5.5.220.0070.08320.31
5.5.210.0070.07020.19
5.5.200.0070.08020.16
5.5.190.0100.04720.04
5.5.180.0070.08020.28
5.5.160.0030.08320.24
5.5.150.0130.06720.28
5.5.140.0000.06720.08
5.5.130.0100.06320.20
5.5.120.0100.07720.19
5.5.110.0100.07320.27
5.5.100.0130.06320.17
5.5.90.0100.06020.17
5.5.80.0100.08020.10
5.5.70.0170.07320.10
5.5.60.0100.05720.11
5.5.50.0070.07319.91
5.5.40.0070.05719.97
5.5.30.0030.05720.04
5.5.20.0100.06720.15
5.5.10.0000.07020.03
5.5.00.0070.08019.96
5.4.450.0030.07719.38
5.4.440.0100.07319.42
5.4.430.0070.07319.45
5.4.420.0070.07019.22
5.4.410.0070.08019.41
5.4.400.0170.06719.10
5.4.390.0100.07719.04
5.4.380.0100.04019.05
5.4.370.0170.06019.05
5.4.360.0070.07318.88
5.4.350.0000.07718.92
5.4.340.0100.06319.02
5.4.320.0170.06718.95
5.4.310.0130.06719.14
5.4.300.0170.07018.95
5.4.290.0170.07019.05
5.4.280.0000.05319.04
5.4.270.0170.06018.88
5.4.260.0070.07719.13
5.4.250.0170.04019.23
5.4.240.0030.07719.12
5.4.230.0030.05019.04
5.4.220.0070.07319.13
5.4.210.0070.04318.84
5.4.200.0130.07018.84
5.4.190.0130.05319.20
5.4.180.0100.07719.15
5.4.170.0070.07719.17
5.4.160.0100.07019.02
5.4.150.0100.07018.86
5.4.140.0070.08016.38
5.4.130.0100.04316.55
5.4.120.0070.04316.36
5.4.110.0030.04316.34
5.4.100.0070.04716.55
5.4.90.0130.06316.38
5.4.80.0030.07316.38
5.4.70.0070.07316.40
5.4.60.0070.07016.34
5.4.50.0170.06016.25
5.4.40.0070.07316.37
5.4.30.0100.06716.32
5.4.20.0130.03316.36
5.4.10.0130.05016.32
5.4.00.0000.07715.86
5.3.290.0170.06714.74
5.3.280.0130.04314.71
5.3.270.0170.06714.71
5.3.260.0100.07014.63
5.3.250.0070.07314.81
5.3.240.0100.07014.68
5.3.230.0100.07314.68
5.3.220.0100.06314.67
5.3.210.0070.07014.59
5.3.200.0100.07314.72
5.3.190.0000.07714.67
5.3.180.0170.07014.72
5.3.170.0070.07714.58
5.3.160.0070.07014.78
5.3.150.0070.08014.59
5.3.140.0130.07014.76
5.3.130.0070.04714.71
5.3.120.0170.04714.58
5.3.110.0000.05014.75
5.3.100.0070.07314.09
5.3.90.0070.07714.05
5.3.80.0030.07714.16
5.3.70.0030.07714.04
5.3.60.0100.07314.21
5.3.50.0070.06013.93
5.3.40.0030.04714.15
5.3.30.0070.06714.01
5.3.20.0100.03713.84
5.3.10.0070.04713.67
5.3.00.0100.05013.77
5.2.170.0100.06011.01
5.2.160.0130.04311.01
5.2.150.0030.04011.21
5.2.140.0030.04710.94
5.2.130.0000.04310.89
5.2.120.0030.06011.14
5.2.110.0030.06011.09
5.2.100.0070.06311.17
5.2.90.0030.06311.10
5.2.80.0100.04711.12
5.2.70.0030.04311.08
5.2.60.0030.03711.11
5.2.50.0070.07311.01
5.2.40.0100.04010.99
5.2.30.0030.05710.98
5.2.20.0070.03710.86
5.2.10.0070.06010.93
5.2.00.0030.06010.75
5.1.60.0100.0239.99
5.1.50.0030.0509.83
5.1.40.0070.0339.86
5.1.30.0070.05310.27
5.1.20.0000.03010.41
5.1.10.0070.02310.05
5.1.00.0000.05710.12
5.0.50.0000.0508.95
5.0.40.0070.0438.95
5.0.30.0000.0408.95
5.0.20.0000.0238.95
5.0.10.0000.0478.95
5.0.00.0030.0638.95
4.4.90.0000.0378.95
4.4.80.0070.0178.95
4.4.70.0030.0178.95
4.4.60.0030.0308.95
4.4.50.0070.0278.95
4.4.40.0030.0278.95
4.4.30.0030.0338.95
4.4.20.0000.0338.95
4.4.10.0000.0378.95
4.4.00.0030.0508.95
4.3.110.0000.0338.95
4.3.100.0030.0178.95
4.3.90.0000.0378.95
4.3.80.0070.0438.95
4.3.70.0030.0278.95
4.3.60.0030.0238.95
4.3.50.0070.0278.95
4.3.40.0000.0408.95
4.3.30.0030.0278.95
4.3.20.0000.0308.95
4.3.10.0030.0338.95
4.3.00.0030.0238.95

preferences:
59.29 ms | 400 KiB | 5 Q