3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://maps.google.com/maps/api/geocode/json?address=Bahnhofstra%C3%9Fe+19+Gr%C3%A4fenhainichen&components=country:NL'; $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 5); $data = curl_exec($ch); $data = json_decode($data); if (!curl_errno($ch) && isset($data->status) && ($data->status == 'OK')) { // $latitude = $data->result[0]->geometry->location->lat; // $longitude = $data->result[0]->geometry->location->lng; // if ($dealers = User::findDealersByCoordinates($longitude, $latitude, $country->id)) { // $dealerId = $dealers[0]['dealerID']; // $websiteId = $dealers[0]['websiteID']; } } else { // Yii::error('Curl request at Google API timeout'); } 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)
5.6.150.0070.08318.24
5.6.140.0100.05718.16
5.6.130.0100.07718.16
5.6.120.0130.08320.96
5.6.110.0100.03320.98
5.6.100.0070.04020.95
5.6.90.0170.07721.10
5.6.80.0070.07020.41
5.5.300.0000.04717.96
5.5.290.0030.04017.98
5.5.280.0030.05320.85
5.5.270.0270.03320.96
5.5.260.0100.06020.79
5.5.250.0030.06720.77
5.5.240.0300.07320.23

preferences:
142.7 ms | 1394 KiB | 7 Q