3v4l.org

run code in 300+ PHP versions simultaneously
<?php $token = "bot448828288:AAGiqKvcNpZWvwrGNrRkpiETihFhIVpWtQA"; $chatid = "@cointweets"; $text = "Hello!"; $chat_id = @cointweets; $text = 'your text goes here'; $disable_web_page_preview = null; $reply_to_message_id = null; $reply_markup = null; $data = array( 'chat_id' => urlencode($chat_id), 'text' => urlencode($text), 'disable_web_page_preview' => urlencode($disable_web_page_preview), 'reply_to_message_id' => urlencode($reply_to_message_id), 'reply_markup' => urlencode($reply_markup) ); $url = https://api.telegram.org/bot448828288:AAGiqKvcNpZWvwrGNrRkpiETihFhIVpWtQA/sendMessage; // open connection $ch = curl_init(); // set the url curl_setopt($ch, CURLOPT_URL, $url); // number of POST vars curl_setopt($ch, CURLOPT_POST, count($fields)); // POST data curl_setopt($ch, CURLOPT_POSTFIELDS, $fields); // To display result of curl curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // execute post $result = curl_exec($ch); // close connection curl_close($ch); ?>

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.0080.00815.27
7.1.60.0260.00633.23
7.1.50.0200.01332.82
7.1.40.0230.01332.46
7.1.30.0180.01532.70
7.1.20.0240.01032.51
7.1.10.0120.00914.25
7.1.00.1070.01014.45
7.0.200.0130.00314.45
7.0.190.0060.01014.37
7.0.180.0110.01414.43
7.0.170.0100.00714.25
7.0.160.0070.01014.13
7.0.150.0110.00714.27
7.0.140.0120.00614.32
7.0.130.0130.00714.59
7.0.120.0090.00914.48
7.0.110.0090.00914.20
7.0.100.0070.01314.17
7.0.90.0100.01014.30
7.0.80.0090.00914.34
7.0.70.0120.00914.30
7.0.60.0060.01113.93
7.0.50.0150.00314.27
7.0.40.0070.01114.39
7.0.30.0030.01314.52
7.0.20.0030.01614.63
7.0.10.0120.00314.37
7.0.00.0090.00614.29

preferences:
140.42 ms | 1394 KiB | 7 Q