3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $client = new SoapClient('http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl'); $params = array('countryCode' => 'CZ', 'vatNumber' => '26168685'); $rec = $client->checkVat($params); var_dump($rec);
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/rSW9V:2 Stack trace: #0 {main} thrown in /in/rSW9V on line 2
Process exited with code 255.
Output for 5.4.2 - 5.6.28
Fatal error: Class 'SoapClient' not found in /in/rSW9V on line 2
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl' : failed to load external entity "http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl" in /in/rSW9V:2 Stack trace: #0 /in/rSW9V(2): SoapClient->SoapClient('http://ec.europ...') #1 {main} thrown in /in/rSW9V on line 2
Process exited with code 255.