3v4l.org

run code in 300+ PHP versions simultaneously
<?php $download = curl_init("http://i.ytimg.com/vi/YuPaeU0VEX4/maxresdefault.jpg"); curl_setopt($download, CURLOPT_RETURNTRANSFER, 1); curl_setopt($download, CURLOPT_TIMEOUT, 20); curl_setopt($download,CURLOPT_HTTPHEADER,array( 'User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1', 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language: ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7', 'Connection: keep-alive', 'Pragma: no-cache', 'Cache-Control: no-cache' )); $image_file = curl_exec($download); curl_close($download); var_dump($image_file);

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)
8.3.60.0180.00716.50
8.3.50.0080.01021.91
8.3.40.0080.00818.98
8.3.30.0100.00319.22
8.3.20.0040.00420.27
8.3.10.0050.00223.49
8.3.00.0040.00419.34
8.2.180.0140.00718.16
8.2.170.0140.00322.96
8.2.160.0070.00720.35
8.2.150.0060.00324.18
8.2.140.0080.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00422.08
8.2.110.0030.00622.43
8.2.100.0080.00417.91
8.2.90.0040.00419.22
8.2.80.0000.00917.97
8.2.70.0060.00317.38
8.2.60.0080.00017.80
8.2.50.0080.00018.07
8.2.40.0030.00519.94
8.2.30.0040.00419.85
8.2.20.0030.00617.63
8.2.10.0030.00518.07
8.2.00.0080.00417.70
8.1.280.0220.00325.92
8.1.270.0080.00023.95
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0060.00618.97
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00717.23
8.1.190.0040.00417.10
8.1.180.0080.00218.10
8.1.170.0030.00618.60
8.1.160.0000.00721.81
8.1.150.0000.00718.43
8.1.140.0060.00317.34
8.1.130.0000.00717.66
8.1.120.0000.00717.37
8.1.110.0000.00817.39
8.1.100.0070.00017.34
8.1.90.0000.00717.23
8.1.80.0040.00417.33
8.1.70.0000.00817.26
8.1.60.0030.00617.44
8.1.50.0000.00817.51
8.1.40.0040.00417.44
8.1.30.0030.00517.56
8.1.20.0000.00817.59
8.1.10.0000.00717.51
8.1.00.0000.00717.39
8.0.300.0030.00318.77
8.0.290.0040.00416.91
8.0.280.0000.00818.41
8.0.270.0030.00317.21
8.0.260.0000.00617.22
8.0.250.0040.00416.95
8.0.240.0040.00416.93
8.0.230.0030.00317.04
8.0.220.0040.00416.92
8.0.210.0070.00016.89
8.0.200.0070.00016.93
8.0.190.0060.00316.88
8.0.180.0040.00416.92
8.0.170.0040.00416.93
8.0.160.0000.00716.81
8.0.150.0030.00316.72
8.0.140.0050.00516.86
8.0.130.0050.00013.35
8.0.120.0060.00316.76
8.0.110.0040.00416.78
8.0.100.0000.00716.86
8.0.90.0000.00716.92
8.0.80.0030.01916.86
8.0.70.0050.00216.77
8.0.60.0040.00416.78
8.0.50.0000.00716.97
8.0.30.0090.00917.02
8.0.20.0130.00517.40
8.0.10.0040.00416.80
8.0.00.0090.01116.74
7.4.330.0000.00615.00
7.4.320.0000.00716.42
7.4.300.0000.00616.56
7.4.290.0030.00316.56
7.4.280.0000.00716.55
7.4.270.0000.00716.55
7.4.260.0000.00816.30
7.4.250.0040.00416.37
7.4.240.0030.00316.47
7.4.230.0040.00416.62
7.4.220.0120.00616.49
7.4.210.0040.00916.50
7.4.200.0000.00716.57
7.4.190.0040.00416.52
7.4.160.0060.01716.46
7.4.150.0170.00317.40
7.4.140.0090.00917.86
7.4.130.0080.00816.54
7.4.120.0090.00816.61
7.4.110.0080.00816.48
7.4.100.0090.01316.40
7.4.90.0080.00816.51
7.4.80.0090.00919.39
7.4.70.0040.01116.58
7.4.60.0130.00416.43
7.4.50.0060.00316.23
7.4.40.0130.00416.43
7.4.30.0040.01216.51
7.4.00.0120.00414.89
7.3.330.0030.00313.01
7.3.320.0020.00213.00
7.3.310.0040.00416.28
7.3.300.0000.00716.32
7.3.290.0090.00616.30
7.3.280.0060.00916.27
7.3.270.0090.01317.40
7.3.260.0000.01816.34
7.3.250.0110.00616.41
7.3.240.0080.00816.50
7.3.230.0130.00916.39
7.3.210.0000.01716.52
7.3.200.0060.01519.39
7.3.190.0090.01016.35
7.3.180.0090.00616.21
7.3.170.0150.00316.44
7.3.160.0030.01216.52
7.3.120.0090.00614.66
7.2.330.0150.00316.45
7.2.320.0090.00916.22
7.2.310.0130.00316.56
7.2.300.0080.00816.48
7.2.290.0090.00916.63
7.2.60.0000.01416.75
7.2.00.0040.00819.34
7.1.200.0060.00915.66
7.1.100.0040.01117.66
7.1.70.0000.01017.05
7.1.60.0100.01419.46
7.1.50.0100.01016.53
7.1.00.0030.07722.31
7.0.200.0260.00314.90
7.0.140.0030.07322.15
7.0.60.0070.04719.99
7.0.50.0070.06717.81
7.0.40.0170.07720.21
7.0.30.0270.07320.02
7.0.20.0270.08320.19
7.0.10.0070.08020.16
7.0.00.0000.08720.03
5.6.280.0100.06721.02
5.6.210.0130.07320.62
5.6.200.0100.08318.22
5.6.190.0130.07020.59
5.6.180.0200.04020.63
5.6.170.0200.08720.40
5.6.160.0030.04320.61
5.6.150.0000.06718.18
5.6.140.0070.04318.14
5.6.130.0200.07018.21
5.6.120.0130.05321.00
5.6.110.0000.04320.99
5.6.100.0070.03721.05
5.6.90.0070.06721.12
5.6.80.0100.07320.40
5.5.350.4200.03320.42
5.5.340.0070.07318.01
5.5.330.0000.05320.12
5.5.320.0300.03720.28
5.5.310.0300.08720.28
5.5.300.0100.03317.91
5.5.290.0100.07717.92
5.5.280.0170.08020.68
5.5.270.0070.04020.72
5.5.260.0170.07320.86
5.5.250.0000.04720.77
5.5.240.0070.08020.19
5.4.450.0170.07719.48
5.4.440.0200.05719.24
5.4.430.0300.04319.47
5.4.420.0130.06019.53
5.4.410.0170.08719.41
5.4.400.0200.06318.95
5.4.390.0170.05719.18
5.4.380.0370.04718.68
5.4.370.0430.05018.45
5.4.360.0170.06018.61
5.4.350.0230.05718.62
5.4.340.0330.06318.70
5.4.320.0040.04012.46
5.4.310.0110.05012.46
5.4.300.0080.04812.46
5.4.290.0080.03912.44
5.4.280.0070.03912.34
5.4.270.0100.04812.34
5.4.260.0120.05312.34
5.4.250.0090.04012.34
5.4.240.0050.04112.34
5.4.230.0110.04612.33
5.4.220.0110.04612.33
5.4.210.0110.04112.33
5.4.200.0140.06912.33
5.4.190.0130.05412.33
5.4.180.0150.10112.32
5.4.170.0160.08712.34
5.4.160.0120.07612.33
5.4.150.0110.04712.33
5.4.140.0190.07912.01
5.4.130.0090.07412.00
5.4.120.0080.04911.96
5.4.110.0090.04511.96
5.4.100.0310.11611.95
5.4.90.0130.06811.95
5.4.80.0160.05111.95
5.4.70.0210.07211.95
5.4.60.0080.04211.95
5.4.50.0070.03911.95
5.4.40.0130.04711.94
5.4.30.0100.03911.94
5.4.20.0180.07911.94
5.4.10.0110.03511.93
5.4.00.0120.04911.43
5.3.290.0050.04512.80
5.3.280.0150.05112.71
5.3.270.0090.05212.73
5.3.260.0180.07012.72
5.3.250.0120.05112.72
5.3.240.0090.04112.71
5.3.230.0050.04512.71
5.3.220.0120.05812.68
5.3.210.0090.05112.68
5.3.200.0120.04212.68
5.3.190.0370.10112.68
5.3.180.0070.04012.67
5.3.170.0110.04112.67
5.3.160.0110.05612.67
5.3.150.0170.08012.68
5.3.140.0080.04812.66
5.3.130.0150.06112.65
5.3.120.0160.08612.66
5.3.110.0110.04112.66
5.3.100.0050.04912.12
5.3.90.0100.05212.08
5.3.80.0110.04112.07
5.3.70.0060.04312.08
5.3.60.0070.04412.07
5.3.50.0070.03812.00
5.3.40.0070.03912.00
5.3.30.0080.04011.95
5.3.20.0130.05011.72
5.3.10.0050.05011.69
5.3.00.0050.07211.68
5.2.170.0050.0409.18
5.2.160.0080.0499.18
5.2.150.0110.0449.18
5.2.140.0090.0319.18
5.2.130.0060.0339.13
5.2.120.0070.0309.14
5.2.110.0100.0519.14
5.2.100.0120.0539.14
5.2.90.0080.0399.14
5.2.80.0060.0399.14
5.2.70.0110.0569.14
5.2.60.0210.0819.09
5.2.50.0380.1219.06
5.2.40.0160.0649.04
5.2.30.0080.0349.01
5.2.20.0040.0349.00
5.2.10.0060.0338.93
5.2.00.0120.0698.79
5.1.60.0050.0348.07
5.1.50.0060.0328.06
5.1.40.0060.0408.04
5.1.30.0080.0388.40
5.1.20.0140.0778.42
5.1.10.0150.0558.14
5.1.00.0090.0348.14
5.0.50.0070.0256.62
5.0.40.0150.0416.48
5.0.30.0090.0546.29
5.0.20.0090.0296.27
5.0.10.0070.0216.25
5.0.00.0040.0376.23
4.4.90.0030.0214.78
4.4.80.0060.0254.75
4.4.70.0040.0224.75
4.4.60.0060.0194.76
4.4.50.0020.0244.77
4.4.40.0040.0454.71
4.4.30.0030.0294.76
4.4.20.0030.0204.85
4.4.10.0040.0194.85
4.4.00.0020.0284.76
4.3.110.0040.0204.67
4.3.100.0040.0194.67
4.3.90.0050.0194.63
4.3.80.0040.0294.58
4.3.70.0040.0194.63
4.3.60.0050.0164.63
4.3.50.0040.0244.63
4.3.40.0040.0334.54
4.3.30.0060.0303.28
4.3.20.0030.0203.26
4.3.10.0030.0223.22
4.3.00.0230.03010.55

preferences:
41.24 ms | 401 KiB | 5 Q