3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "start"; generateVote(); echo "done"; function generateEmail($email) { return $email; } function generateVote() { $url='http://www.psyczykoty.pl/save-vote'; $c=curl_init(); curl_setopt($c, CURLOPT_URL, $url); curl_setopt($c, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($c, CURLOPT_POST, 1); curl_setopt($c,CURLOPT_HTTPHEADER,array( 'Host: www.psyczykoty.pl', 'Connection: keep-alive', 'Content-Length: 162', 'Pragma: no-cache', 'Cache-Control: no-cache', 'Accept: */*', 'Origin: http://www.psyczykoty.pl', 'X-Requested-With: XMLHttpRequest', 'User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36', 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8', 'Referer: http://www.psyczykoty.pl/glosuj/1/popularne', 'Accept-Encoding: gzip, deflate', 'Accept-Language: pl-PL,pl;q=0.8,en-US;q=0.6,en;q=0.4', 'Cookie: fera-psyczykoty=5fogco6tk0m4sn2rq458qak0l2; _ga=GA1.2.57483650.1444392866; cSID_VM=1444854938606; _gat=1' )); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_FOLLOWLOCATION, FALSE); curl_setopt($c, CURLOPT_POSTFIELDS, "email=pedro92vb%40gmail.com&id_gallery=5617ad20e3ba9644398b4580&username=&city=&petname=&type=default&agree=1&_token=ffI-Tvxc9tC_Eb3tDPIladvoXHPrRhcRoJDp4rbG5F4"); $result = curl_exec($c); var_dump(json_decode($result)); curl_close($c); flush(); } ?>
Output for git.master, git.master_jit, rfc.property-hooks
start Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/XHdlj:12 Stack trace: #0 /in/XHdlj(3): generateVote() #1 {main} thrown in /in/XHdlj on line 12
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:
55.84 ms | 401 KiB | 8 Q