3v4l.org

run code in 300+ PHP versions simultaneously
<?php $client = new SoapClient("http://www.scottnichol.com/samples/hellowsdl2.php?wsdl&debug=1",array( "trace"=>1, "exceptions"=>0) $obj = $client->hello(array('firstname'=>"Scott",'age'=>"50",'gender'=>"M")); $xml = simplexml_load_string($client->__getLastRequest()); $json= json_encode($xml); var_dump($xml); echo "<BR>"; var_dump ($json); ?>
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '$obj' (T_VARIABLE) in /in/0rbR5 on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/0rbR5 on line 5
Process exited with code 255.

preferences:
202.33 ms | 1395 KiB | 61 Q