3v4l.org

run code in 300+ PHP versions simultaneously
<?php # Create a connection $url = 'https://graph.facebook.com'; $ch = curl_init($url); # Form data string $postString = http_build_query($data, '', '&'); # Setting our options curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postString); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); # Get the response $response = curl_exec($ch); curl_close($ch);

preferences:
69.43 ms | 402 KiB | 5 Q