3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://moscow.auto.ru/cars/alfa-romeo/giulia/'; $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_URL, $url); $out = curl_exec($ch); // line endings is the wonkiest piece of this whole thing $out = str_replace("\r", "", $out); var_dump($out); // only look at the headers $headers_end = strpos($out, "\n\n"); if( $headers_end !== false ) { $out = substr($out, 0, $headers_end); } $headers = explode("\n", $out); foreach($headers as $header) { if( substr($header, 0, 10) == "Location: " ) { $target = substr($header, 10); echo "[$url] redirects to [$target]<br>"; continue 2; } } echo "[$url] does not redirect<br>";

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.4.290.0050.03912.46
5.4.280.0100.06112.36
5.4.270.0130.06812.36
5.4.260.0090.03612.36
5.4.250.0090.04412.36
5.4.240.0100.04312.36
5.4.230.0050.04312.36
5.4.220.0100.04012.36
5.4.210.0090.04212.36
5.4.200.0060.04012.35
5.4.190.0040.04012.35
5.4.180.0070.04012.35
5.4.170.0080.04312.36
5.4.160.0090.04212.35
5.4.150.0040.04112.35
5.4.140.0060.04312.04
5.4.130.0090.03612.02
5.4.120.0090.03511.98
5.4.110.0040.04011.98
5.4.100.0060.04011.98
5.4.90.0100.03711.98
5.4.80.0100.04311.98
5.4.70.0110.03711.97
5.4.60.0050.04211.97
5.4.50.0080.04811.97
5.4.40.0070.05011.96
5.4.30.0040.05211.96
5.4.20.0100.04911.96
5.4.10.0090.04911.96
5.4.00.0070.05111.45
5.3.280.0110.04812.71
5.3.270.0100.04912.72
5.3.260.0110.07012.71
5.3.250.0100.04712.72
5.3.240.0100.04312.72
5.3.230.0120.05912.71
5.3.220.0190.09412.68
5.3.210.0050.05712.68
5.3.200.0100.05112.68
5.3.190.0130.06812.68
5.3.180.0080.05512.68
5.3.170.0080.05612.67
5.3.160.0110.05312.67
5.3.150.0100.05412.68
5.3.140.0110.05212.66
5.3.130.0070.05712.65
5.3.120.0090.05512.66
5.3.110.0070.05712.66
5.3.100.0100.04912.12
5.3.90.0060.05412.08
5.3.80.0050.05312.07
5.3.70.0080.04912.07
5.3.60.0100.04712.07
5.3.50.0080.05012.00
5.3.40.0080.04912.00
5.3.30.0070.05211.96
5.3.20.0100.04611.74
5.3.10.0080.05011.70
5.3.00.0040.05411.69

preferences:
148.98 ms | 1394 KiB | 7 Q