3v4l.org

run code in 300+ PHP versions simultaneously
<?php $aHTTP['http']['header'] = "User-Agent: PHP-SOAP/5.5.11\r\n"; $aHTTP['http']['header'].= "username: 20127765279MODDATOS\r\n"."password: moddatos\r\n"; $context = stream_context_create($aHTTP); $client=new SoapClient("https://www.sunat.gob.pe:443/ol-ti-itcpgem-beta/billService", array('trace' => 1,"stream_context" => $context)); $result = $client->__getFunctions(); var_dump($result); ?>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
Fatal error: Uncaught Error: Class "SoapClient" not found in /in/u2p7c:9 Stack trace: #0 {main} thrown in /in/u2p7c on line 9
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/u2p7c:9 Stack trace: #0 {main} thrown in /in/u2p7c on line 9
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Fatal error: Class 'SoapClient' not found in /in/u2p7c on line 9
Process exited with code 255.

preferences:
44.98 ms | 408 KiB | 5 Q