3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $access_token = 'EAAAANkzvIH4BAFYbAEa50ncVnU3tf60CJattqZCCjHMUdXBR6P7YDOzaCTaj1l0osldiU8lwIjWarWvtHrXXRnYhZBY2dXTNksjVy7RxT9ctgirfPRV2jhL9dITN5IdrETGgQYZCpKZAeW5BBAbikie3pgUlCZB8TWub8TrHTjgZDZD'; $url = 'https://graph.facebook.com/v2.6/deejaysoulja/likes?access_token='.$access_token; $ch = curl_init($url); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, // CURLOPT_POST => true, // CURLOPT_POSTFIELDS => [ // 'access_token' => 'XXXXXXXXX', // 'article' => the_permalink() // ] ]); $res = curl_exec($ch); curl_close($ch); var_export($res);
based on u9acS
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/mArBp:7 Stack trace: #0 {main} thrown in /in/mArBp on line 7
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Fatal error: Call to undefined function curl_init() in /in/mArBp on line 7
Process exited with code 255.