3v4l.org

run code in 300+ PHP versions simultaneously
<?php $client = new SoapClient("https://www.scottnichol.com/samples/hellowsdl2.php?wsdl&debug=0",array( "trace"=>1, "exceptions"=>0) ); //libxml_clear_errors(); //libxml_use_internal_errors(true); //$req->firstname="Scott"; //$req->age="50"; //$req->gender="M"; //$parameters->person = $req; $obj = $client->hello(array('firstname'=>"Scott",'age'=>"50",'gender'=>"M")); //$xml = simplexml_load_string($client->__getLastResponse()); $xml = simplexml_load_string($client->__getLastRequest()); //$xml = new SimplexmlElement($client->__getLastResponse(), TRUE); $json= json_encode($xml); //$json= json_encode($client->__getLastResponse()); print "<pre>\n"; print "<br />\n Request : ".htmlspecialchars($client->__getLastRequest()); print "<br />\n Response: ".htmlspecialchars($client->__getLastResponse()); print "<br />\n xml: ".$xml; print "<br />\n JSON: ".$json; print "</pre>"; /*if (!$xml) { $errors = libxml_get_errors(); foreach ($errors as $error) { echo display_xml_error($error, $xml); } }*/ var_dump($xml); echo "<BR>"; var_dump ($json); ?>

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.0030.01418.30
8.3.50.0220.00721.09
8.3.40.0100.00718.59
8.3.30.0070.00720.33
8.3.20.0000.00720.21
8.3.10.0030.00522.05
8.3.00.0040.00422.57
8.2.180.0120.00618.41
8.2.170.0120.00318.91
8.2.160.0150.00022.96
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.79
8.2.110.0090.00022.07
8.2.100.0040.00817.72
8.2.90.0050.00219.27
8.2.80.0070.00019.40
8.2.70.0040.00417.50
8.2.60.0030.00518.04
8.2.50.0040.00418.07
8.2.40.0000.00718.03
8.2.30.0000.00819.34
8.2.20.0080.00017.71
8.2.10.0040.00417.60
8.2.00.0000.00717.55
8.1.280.0100.01025.92
8.1.270.0080.00023.99
8.1.260.0030.00526.35
8.1.250.0030.00628.09
8.1.240.0000.00924.02
8.1.230.0000.01119.20
8.1.220.0030.00517.75
8.1.210.0000.00818.77
8.1.200.0030.00617.13
8.1.190.0050.00317.39
8.1.180.0000.00819.01
8.1.170.0040.00418.58
8.1.160.0030.00318.75
8.1.150.0040.00418.46
8.1.140.0070.00017.32
8.1.130.0000.00717.36
8.1.120.0000.00717.30
8.1.110.0000.00817.30
8.1.100.0040.00417.23
8.1.90.0040.00417.29
8.1.80.0070.00017.25
8.1.70.0070.00017.31
8.1.60.0060.00317.50
8.1.50.0040.00417.38
8.1.40.0000.00917.48
8.1.30.0030.00617.39
8.1.20.0060.00317.44
8.1.10.0000.00817.42
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0080.00016.91
8.0.280.0000.00718.42
8.0.270.0080.00017.17
8.0.260.0000.00718.61
8.0.250.0060.00016.93
8.0.240.0040.00416.97
8.0.230.0040.00416.97
8.0.220.0000.00716.82
8.0.210.0030.00316.93
8.0.200.0000.00716.82
8.0.190.0040.00416.95
8.0.180.0040.00416.91
8.0.170.0080.00016.89
8.0.160.0040.00416.93
8.0.150.0060.00616.79
8.0.140.0000.00916.88
8.0.130.0060.00013.27
8.0.120.0040.00416.82
8.0.110.0000.00716.79
8.0.100.0000.00716.93
8.0.90.0040.00416.95
8.0.80.0000.01516.88
8.0.70.0030.00516.91
8.0.60.0040.00416.88
8.0.50.0080.00016.82
8.0.30.0160.00316.99
8.0.20.0070.01117.40
8.0.10.0040.00316.76
8.0.00.0050.01216.97
7.4.330.0020.00215.00
7.4.320.0000.01016.38
7.4.300.0000.00616.54
7.4.290.0040.00416.41
7.4.280.0040.00416.52
7.4.270.0060.00016.42
7.4.260.0000.00613.21
7.4.250.0070.00016.47
7.4.240.0020.00516.44
7.4.230.0000.00716.61
7.4.220.0130.00616.54
7.4.210.0080.00916.47
7.4.200.0000.00716.55
7.4.190.0070.00016.29
7.4.160.0120.00316.36
7.4.150.0090.00917.40
7.4.140.0090.01117.86
7.4.130.0060.01216.48
7.4.120.0130.00516.43
7.4.110.0060.01116.55
7.4.100.0040.01416.55
7.4.90.0040.01916.41
7.4.80.0060.01619.39
7.4.70.0060.00916.34
7.4.60.0110.00716.39
7.4.50.0000.00916.36
7.4.40.0030.01322.77
7.4.30.0090.00616.49
7.4.00.0120.00415.05
7.3.330.0000.00513.18
7.3.320.0030.00213.19
7.3.310.0040.00416.32
7.3.300.0070.00016.20
7.3.290.0070.00716.18
7.3.280.0130.00716.24
7.3.270.0080.01117.40
7.3.260.0030.01616.22
7.3.250.0100.00716.48
7.3.240.0100.00716.49
7.3.230.0060.01216.39
7.3.210.0060.00916.43
7.3.200.0040.01419.39
7.3.190.0000.01716.36
7.3.180.0060.00916.37
7.3.170.0100.00616.30
7.3.160.0100.00716.15
7.3.120.0110.00415.07
7.2.330.0110.00816.22
7.2.320.0100.01416.42
7.2.310.0050.01116.25
7.2.300.0100.00716.67
7.2.290.0040.01416.45
7.2.60.0040.00816.81
7.2.00.0040.00719.25
7.1.200.0030.01015.59
7.1.100.0000.01218.23
7.1.70.0060.00617.05
7.1.60.0100.01419.32
7.1.50.0070.01316.74
7.1.00.0000.03722.54
7.0.200.0000.00816.76
7.0.140.0030.07721.93
7.0.90.0430.05020.02
7.0.80.0530.08019.82
7.0.70.0470.04320.14
7.0.60.0500.06719.91
7.0.50.0400.08320.32
7.0.40.0100.08020.10
7.0.30.0030.06020.14
7.0.20.0070.04320.05
7.0.10.0070.08020.14
7.0.00.0000.09020.10
5.6.280.0070.06720.92
5.6.240.0030.04720.57
5.6.230.0100.07320.56
5.6.220.0000.04320.62
5.6.210.0070.04720.60
5.6.200.0130.08321.04
5.6.190.0200.06321.03
5.6.180.0030.08721.13
5.6.170.0070.08020.95
5.6.160.0030.08021.00
5.6.150.0070.08721.04
5.6.140.0030.08721.02
5.6.130.0070.08321.01
5.6.120.0200.07321.13
5.6.110.0070.09021.02
5.6.100.0070.06020.93
5.6.90.0070.05320.88
5.6.80.0030.08020.33
5.6.70.0070.04320.39
5.6.60.0100.06020.43
5.6.50.0170.02720.40
5.6.40.0030.04020.46
5.6.30.0070.03720.46
5.6.20.0030.04720.43
5.6.10.0070.03720.39
5.6.00.0000.04320.44
5.5.380.0130.06020.49
5.5.370.0070.06320.37
5.5.360.0030.04320.55
5.5.350.0030.07720.45
5.5.340.0000.05320.93
5.5.330.0070.08720.73
5.5.320.0170.07320.76
5.5.310.0100.04320.86
5.5.300.0130.07720.77
5.5.290.0030.08320.77
5.5.280.0170.07720.92
5.5.270.0000.08020.77
5.5.260.0030.08720.85
5.5.250.0170.07020.70
5.5.240.0030.06320.14
5.5.230.0000.04320.27
5.5.220.0070.04720.20
5.5.210.0070.03720.11
5.5.200.0100.04320.27
5.5.190.0070.04020.24
5.5.180.0070.03720.14
5.5.160.0030.04020.08
5.5.150.0100.03720.22
5.5.140.0070.04020.21
5.5.130.0070.03720.15
5.5.120.0030.03720.14
5.5.110.0070.04020.05
5.5.100.0170.02719.98
5.5.90.0100.06320.05
5.5.80.0030.04020.01
5.5.70.0130.04720.09
5.5.60.0100.04320.06
5.5.50.0030.04720.11
5.5.40.0000.04720.08
5.5.30.0070.07720.05
5.5.20.0030.04320.05
5.5.10.0070.06720.03
5.5.00.0100.04020.11
5.4.450.0100.05019.37
5.4.440.0130.04719.45
5.4.430.0070.04319.35
5.4.420.0030.08319.43
5.4.410.0200.06019.22
5.4.400.0100.07719.10
5.4.390.0000.04019.07
5.4.380.0030.04019.03
5.4.370.0170.03019.06
5.4.360.0070.06318.94
5.4.350.0200.03019.09
5.4.340.0000.04319.13
5.4.320.0000.04019.07
5.4.310.0070.05019.09
5.4.300.0030.03318.98
5.4.290.0000.04318.85
5.4.280.0030.03719.23
5.4.270.0070.03719.14
5.4.260.0070.07019.11
5.4.250.0070.04319.04
5.4.240.0030.06018.91
5.4.230.0100.03018.96
5.4.220.0100.03319.13
5.4.210.0070.06719.12
5.4.200.0000.06019.12
5.4.190.0070.03718.92
5.4.180.0030.03718.84
5.4.170.0070.05718.91
5.4.160.0000.04719.10
5.4.150.0030.04318.92
5.4.140.0000.04016.22
5.4.130.0000.03716.22
5.4.120.0070.03316.31
5.4.110.0070.03316.26
5.4.100.0070.03716.31
5.4.90.0030.06016.21
5.4.80.0000.03716.41
5.4.70.0030.03316.41
5.4.60.0030.03716.41
5.4.50.0070.05316.41
5.4.40.0030.08316.45
5.4.30.0030.04716.41
5.4.20.0170.06716.46
5.4.10.0170.06316.39
5.4.00.0000.07715.80
5.3.290.0030.05014.66
5.3.280.0030.04014.70
5.3.270.0000.04314.65
5.3.260.0070.08014.73
5.3.250.0000.05014.70
5.3.240.0000.04714.73
5.3.230.0030.03714.59
5.3.220.0000.04014.57
5.3.210.0070.07314.64
5.3.200.0030.04014.64
5.3.190.0030.06014.71
5.3.180.0070.03314.55
5.3.170.0030.03714.66
5.3.160.0100.06314.64
5.3.150.0100.07014.64
5.3.140.0130.05714.67
5.3.130.0100.06014.70
5.3.120.0130.07714.55
5.3.110.0100.07314.59
5.3.100.0100.07314.08
5.3.90.0100.07314.10
5.3.80.0100.07314.11
5.3.70.0070.07714.01
5.3.60.0130.05314.11
5.3.50.0030.06314.04
5.3.40.0000.07314.02
5.3.30.0170.06014.04
5.3.20.0070.05013.77
5.3.10.0100.07013.77
5.3.00.0070.06713.67
5.2.170.0030.06011.21
5.2.160.0070.06011.25
5.2.150.0030.06011.24
5.2.140.0070.05311.23
5.2.130.0030.03711.10
5.2.120.0030.06311.22
5.2.110.0030.05011.17
5.2.100.0070.05311.21
5.2.90.0030.06311.21
5.2.80.0030.04011.17
5.2.70.0070.05011.03
5.2.60.0070.06011.18
5.2.50.0000.05011.13
5.2.40.0000.04011.11
5.2.30.0030.03311.02
5.2.20.0030.06711.05
5.2.10.0000.04010.89
5.2.00.0070.05310.80
5.1.60.0000.03010.05
5.1.50.0070.04010.01
5.1.40.0070.0479.89
5.1.30.0070.05710.38
5.1.20.0070.04010.38
5.1.10.0070.04710.10
5.1.00.0100.04010.13
5.0.50.0070.0338.52
5.0.40.0100.0408.45
5.0.30.0030.0638.35
5.0.20.0030.0408.33
5.0.10.0030.0438.31
5.0.00.0000.0638.08
4.4.90.0100.0207.78
4.4.80.0030.0307.78
4.4.70.0030.0237.78
4.4.60.0000.0307.78
4.4.50.0030.0337.78
4.4.40.0000.0307.78
4.4.30.0030.0377.78
4.4.20.0030.0307.78
4.4.10.0000.0337.78
4.4.00.0070.0507.78
4.3.110.0070.0337.78
4.3.100.0070.0307.78
4.3.90.0000.0377.78
4.3.80.0100.0277.78
4.3.70.0000.0307.78
4.3.60.0000.0277.78
4.3.50.0070.0277.78
4.3.40.0070.0507.78
4.3.30.0030.0337.78
4.3.20.0070.0307.78
4.3.10.0000.0377.78
4.3.00.0100.0207.78

preferences:
41.24 ms | 401 KiB | 5 Q