3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8" ?> <websmsapi> <version>1.0</version> <username>someuser</username> <secretkey>0ce4873891a54685bcf2e75cb20a8c9f</secretkey> <recipients> <count>1</count> <mobiles> <m>99635403</m> </mobiles> </recipients> <message>Hello from cytamobile-vodafone web sms API</message> <language>en</language> </websmsapi>'; $url = 'https://www.cyta.com.cy/cytamobilevodafone/dev/websmsapi/sendsms.aspx'; echo $url; $ch = curl_init($url); // p.112, p.103 Lorna curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); //curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, Array("application/xml; charset=utf-8")); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE); echo '<pre>'.$xml.'</pre><br/>'; $response = curl_exec($ch); echo "CURLINFO_REDIRECT_COUNT:".curl_getinfo($ch, CURLINFO_REDIRECT_COUNT)."<br/>"; echo "CURLINFO_HTTP_CODE:".curl_getinfo($ch, CURLINFO_HTTP_CODE)."<br/>"; echo "<br/>"; echo $response; curl_close($ch); //echo '<pre>'.nl2br(htmlspecialchars($response)).'<pre>'; ?>
Output for git.master, git.master_jit, rfc.property-hooks
https://www.cyta.com.cy/cytamobilevodafone/dev/websmsapi/sendsms.aspx Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/RnnnQ:20 Stack trace: #0 {main} thrown in /in/RnnnQ on line 20
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:
39.47 ms | 401 KiB | 8 Q