3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ranger($url){ $headers = array( "Range: bytes=0-32768" ); $curl = curl_init($url); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec($curl); curl_close($curl); return $data; } $start = microtime(true); $url = "http://news.softpedia.com/images/news2/Debian-Turns-15-2.jpeg"; $raw = ranger($url); $im = imagecreatefromstring($raw); $width = imagesx($im); $height = imagesy($im); $stop = round(microtime(true) - $start, 5); echo $width." x ".$height." ({$stop}s)";

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.2.00.0060.00819.23
7.1.70.0040.01117.10
7.1.60.0110.00319.46
7.1.50.0100.01616.91
7.1.00.0000.07722.50
7.0.200.0000.00816.70
7.0.140.0000.08021.97
7.0.60.0070.07319.86
7.0.50.0100.03317.97
7.0.40.0070.04020.15
7.0.30.0400.05320.29
7.0.20.0270.05320.09
7.0.10.0170.08720.12
7.0.00.0100.08020.32
5.6.280.0000.07721.11
5.6.210.0000.09020.55
5.6.200.0170.07318.21
5.6.190.0030.04720.43
5.6.180.0370.08020.64
5.6.170.0170.06720.47
5.6.160.0100.05320.48
5.6.150.0130.07318.29
5.6.140.0000.09018.20
5.6.130.0030.09018.17
5.6.120.0100.08021.05
5.6.110.0030.08721.13
5.6.100.0070.08721.06
5.6.90.0130.05721.13
5.6.80.0070.06020.44
5.6.70.2970.04020.51
5.5.350.0030.07720.31
5.5.340.0130.07017.95
5.5.330.0100.08720.19
5.5.320.0270.06020.40
5.5.310.0400.07020.25
5.5.300.0070.06318.08
5.5.290.0030.05718.00
5.5.280.0070.08320.78
5.5.270.0000.04320.80
5.5.260.0100.07720.73
5.5.250.0070.07320.62
5.5.240.0200.07720.27
5.4.450.0270.06319.46
5.4.440.0170.05319.25
5.4.430.0530.05019.56
5.4.420.0730.06319.63
5.4.410.0870.05319.29
5.4.400.0670.05719.22
5.4.390.0930.03718.96
5.4.380.0130.05318.54
5.4.370.0200.05018.84
5.4.360.0130.05318.63
5.4.350.0100.05718.80
5.4.340.0130.05718.79
5.4.320.0030.04112.51
5.4.310.0100.04712.50
5.4.300.0050.03712.51
5.4.290.0080.04412.51
5.4.280.0070.05512.40
5.4.270.0060.05512.41
5.4.260.0080.05812.41
5.4.250.0090.05712.41
5.4.240.0090.05512.41
5.4.230.0100.05612.39
5.4.220.0120.05112.39
5.4.210.0040.05612.39
5.4.200.0090.04012.40
5.4.190.0080.04212.39
5.4.180.0130.05012.39
5.4.170.0080.05412.40
5.4.160.0100.04912.39
5.4.150.0070.05312.39
5.4.140.0080.05612.07
5.4.130.0090.05112.06
5.4.120.0130.04812.02
5.4.110.0120.05212.02
5.4.100.0110.03812.02
5.4.90.0070.04212.02
5.4.80.0090.04412.02
5.4.70.0090.03912.01
5.4.60.0060.04412.02
5.4.50.0080.04812.02
5.4.40.0050.04912.00
5.4.30.0100.04012.00
5.4.20.0070.04412.00
5.4.10.0090.04212.00
5.4.00.0060.04511.49
5.3.290.0040.04312.80
5.3.280.0110.04112.71
5.3.270.0090.04512.73
5.3.260.0160.03812.72
5.3.250.0090.04212.72
5.3.240.0090.04112.72
5.3.230.0060.04612.71
5.3.220.0070.04312.68
5.3.210.0160.05912.68
5.3.200.0120.04712.68
5.3.190.0100.04112.68
5.3.180.0090.04012.67
5.3.170.0060.04712.67
5.3.160.0070.04612.67
5.3.150.0080.05712.67
5.3.140.0120.05512.66
5.3.130.0200.07612.65
5.3.120.0090.04512.66
5.3.110.0080.04612.66
5.3.100.0090.03912.12
5.3.90.0080.04012.11
5.3.80.0110.03612.09
5.3.70.0260.13512.10
5.3.60.0110.04812.08
5.3.50.0100.04912.02
5.3.40.0100.05712.03
5.3.30.0110.05711.98
5.3.20.0110.04211.77
5.3.10.0090.05211.73
5.3.00.0070.04711.72
5.2.170.0100.0369.22
5.2.160.0080.0329.22
5.2.150.0040.0399.22
5.2.140.0020.0379.21
5.2.130.0050.0319.18
5.2.120.0050.0329.18
5.2.110.0070.0299.18
5.2.100.0060.0319.18
5.2.90.0070.0339.18
5.2.80.0060.0349.18
5.2.70.0050.0319.18
5.2.60.0080.0469.13
5.2.50.0050.0449.10
5.2.40.0080.0379.08
5.2.30.0060.0459.05
5.2.20.0070.0429.05
5.2.10.0100.0358.95
5.2.00.0110.0378.81
5.1.60.0050.0378.09
5.1.50.0060.0338.09
5.1.40.0070.0358.07
5.1.30.0120.0358.42
5.1.20.0100.0558.44
5.1.10.0090.0528.16
5.1.00.0050.0438.16
5.0.50.0070.0276.64
5.0.40.0040.0326.50
5.0.30.0050.0436.32
5.0.20.0030.0276.29
5.0.10.0050.0276.27
5.0.00.0070.0366.26
4.4.90.0040.0214.78
4.4.80.0070.0184.76
4.4.70.0020.0194.76
4.4.60.0050.0154.75
4.4.50.0060.0144.77
4.4.40.0060.0244.71
4.4.30.0050.0154.76
4.4.20.0040.0214.85
4.4.10.0060.0154.85
4.4.00.0040.0284.76
4.3.110.0050.0174.67
4.3.100.0040.0184.66
4.3.90.0090.0154.63
4.3.80.0070.0424.58
4.3.70.0070.0204.63
4.3.60.0050.0174.63
4.3.50.0050.0194.63
4.3.40.0030.0274.54
4.3.30.0020.0193.32
4.3.20.0040.0203.30
4.3.10.0040.0183.27
4.3.00.0100.0206.90

preferences:
35.89 ms | 401 KiB | 5 Q