3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try { $options = [ 'exceptions' => true, ]; $client = new \SoapClient('http://ws.cdyne.com/ip2geo/ip2geo.asmx?wsdl'); } catch (\Exception $e) { echo $e->getMessage(); }
based on nUumk
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/cZfoV:7 Stack trace: #0 {main} thrown in /in/cZfoV on line 7
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Class 'SoapClient' not found in /in/cZfoV on line 7
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/cZfoV on line 4
Process exited with code 255.