3v4l.org

run code in 300+ PHP versions simultaneously
<?php $service_url = "http://127.0.0.1:8000/api/thesis/?format=json"; //initialize a curl session $curl = curl_init($service_url); //set options for the transfer curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_TIMEOUT, 5); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_POST, 0); //execute the session $curl_response = curl_exec($curl); //TODO //set up the database connection echo "Hello Munir :D"; //$p = phpinfo(); //echo $p; //finish off the session curl_close($curl); $curl_jason = json_decode($curl_response, true); print_r($curl_jason); echo $curl_jason; echo curl_error($curl_response); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/ueZaK:4 Stack trace: #0 {main} thrown in /in/ueZaK on line 4
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:
28.5 ms | 405 KiB | 5 Q