3v4l.org

run code in 300+ PHP versions simultaneously
<?php $phoneNumber = '972544273449'; $content = 'Bob'; ini_set('soap.wsdl_cache_enabled', '0'); $options = array('soap_version' => SOAP_1_2); $url = 'http://smsotp.fpt.vn/Service.asmx/SendSMS'; if(substr($phoneNumber,0, 1)=='0'){ $phoneNumber = '84'.substr($phoneNumber,1, strlen($phoneNumber)); } try { $client = @new SoapClient($url, $options); $params = array( 'PhoneNumber' => $phoneNumber, 'Message' => $content, 'Resource' => 3 ); $result = $client->SendSMS($params); } catch (SoapFault $e) { $result = $e->getMessage(); } return $result;
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Undefined constant "SOAP_1_2" in /in/pbnVl:7 Stack trace: #0 {main} thrown in /in/pbnVl on line 7
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
45.11 ms | 401 KiB | 8 Q