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);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.1.70.0020.01216.76
7.1.60.0250.01334.96
7.1.50.0130.02334.61
7.1.40.0110.01834.05
7.1.30.0270.01034.36
7.1.20.0220.01634.24
7.1.10.0080.00816.25
7.1.00.0030.01516.42
7.0.200.0090.01016.71
7.0.190.0030.01516.67
7.0.180.0060.00915.98
7.0.170.0130.00715.96
7.0.160.0090.01016.00
7.0.150.0070.01116.21
7.0.140.0090.00916.19
7.0.130.0120.00616.32
7.0.120.0070.01016.28
7.0.110.0080.00916.14
7.0.100.0000.01616.11
7.0.90.0090.00616.07
7.0.80.0080.00816.25
7.0.70.0020.01616.07
7.0.60.0000.01715.99
7.0.50.0030.01416.28
7.0.40.0060.01216.52
7.0.30.0030.01316.50
7.0.20.0030.01516.20
7.0.10.0060.00916.24
7.0.00.0060.00916.17

preferences:
138.28 ms | 1386 KiB | 7 Q