3v4l.org

run code in 300+ PHP versions simultaneously
<?php $access_token = $token['access_token']; $owner_id = $userInfo['uid']; $message = '🔥 Я во ВКонтакте уже '.$days.' дней!'.PHP_EOL.'🚩Узнай и ты свой возраст в ВК:'.PHP_EOL.'🆗 '; function postMessage($access_token,$owner_id,$message){ $request = "https://api.vkontakte.ru/method/wall.post"; $params = array('owner_id' => $owner_id,'message' => $message,'access_token' => $access_token); $result = callMethod($request, $params); return $result; } function callMethod($request, $params){$c=curl_init(); curl_setopt($c, CURLOPT_URL, $request); curl_setopt($c, CURLOPT_RETURNTRANSFER, true); curl_setopt($c, CURLOPT_FOLLOWLOCATION, true); curl_setopt($c, CURLOPT_POST, true); curl_setopt($c, CURLOPT_POSTFIELDS, $params); curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($c, CURLOPT_TIMEOUT, 30); $result=curl_exec($c); curl_close($c); return $result; } postMessage( $access_token,$owner_id,$message);
Output for git.master, git.master_jit
Warning: Undefined variable $token in /in/8QmK4 on line 2 Warning: Trying to access array offset on value of type null in /in/8QmK4 on line 2 Warning: Undefined variable $userInfo in /in/8QmK4 on line 3 Warning: Trying to access array offset on value of type null in /in/8QmK4 on line 3 Warning: Undefined variable $days in /in/8QmK4 on line 4 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/8QmK4:12 Stack trace: #0 /in/8QmK4(9): callMethod('https://api.vko...', Array) #1 /in/8QmK4(24): postMessage(NULL, NULL, '\xF0\x9F\x94\xA5 \xD0\xAF \xD0\xB2\xD0\xBE \xD0\x92...') #2 {main} thrown in /in/8QmK4 on line 12
Process exited with code 255.
Output for rfc.property-hooks
Warning: Undefined variable $token in /in/8QmK4 on line 2 Warning: Trying to access array offset on null in /in/8QmK4 on line 2 Warning: Undefined variable $userInfo in /in/8QmK4 on line 3 Warning: Trying to access array offset on null in /in/8QmK4 on line 3 Warning: Undefined variable $days in /in/8QmK4 on line 4 Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/8QmK4:12 Stack trace: #0 /in/8QmK4(9): callMethod('https://api.vko...', Array) #1 /in/8QmK4(24): postMessage(NULL, NULL, '\xF0\x9F\x94\xA5 \xD0\xAF \xD0\xB2\xD0\xBE \xD0\x92...') #2 {main} thrown in /in/8QmK4 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:
50.77 ms | 401 KiB | 8 Q