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); ?>

preferences:
43.76 ms | 402 KiB | 5 Q