3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml = '<?xml version="1.0" encoding="utf-8"?> <propfind xmlns="DAV:"><prop> <getcontentlength xmlns="DAV:"/> <getlastmodified xmlns="DAV:"/> <executable xmlns="http://apache.org/dav/props/"/> <resourcetype xmlns="DAV:"/> <checked-in xmlns="DAV:"/> <checked-out xmlns="DAV:"/> </prop></propfind>'; $url = 'http://81.3.19.108/'; $c=curl_init($url); //Set headers curl_setopt($c, CURLOPT_HTTPHEADER, array("Depth: 1", "Content-Type: text/xml; charset='UTF-8'", "User-Agent: DAVKit/4.0.1 (730); CalendarStore/4.0.1 (973); iCal/4.0.1 (1374); Mac OS X/10.6.2 (10C540)")); curl_setopt($c, CURLOPT_HEADER, 0); //Set SSL curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0); //Set request and XML curl_setopt($c, CURLOPT_CUSTOMREQUEST, "PROPFIND"); curl_setopt($c, CURLOPT_POSTFIELDS, $xml); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); //Execute $data=curl_exec($c); //Close cURL curl_close($c); print_r($data);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/gEYYD:12 Stack trace: #0 {main} thrown in /in/gEYYD on line 12
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function curl_init() in /in/gEYYD on line 12
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: curl_init() in /in/gEYYD on line 12
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: curl_init() in /in/gEYYD on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: curl_init() in /in/gEYYD on line 12