3v4l.org

run code in 300+ PHP versions simultaneously
<?php function curl_cek($url) { $ch = @curl_init(); curl_setopt($ch, CURLOPT_URL, $url); $head[] = "Connection: keep-alive"; $head[] = "Keep-Alive: 300"; $head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7"; $head[] = "Accept-Language: en-us,en;q=0.5"; curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($ch, CURLOPT_HTTPHEADER, $head); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60); @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); $rmx = curl_exec($ch); curl_close($ch); return $rmx; } function file_download($link,$dosya_adi=NULL){ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$link); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_BINARYTRANSFER,1); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION , TRUE); $dosya=curl_exec($ch); curl_close($ch); if($dosya_adi==NULL){ $dosya_adi=explode("/",$link); $dosya_adi=array_reverse($dosya_adi); $dosya_adi=$dosya_adi[0]; } $fp = fopen($dosya_adi,'w'); fwrite($fp, $dosya); fclose($fp); } $video=curl_cek("https://www.facebook.com/photo.php?v=638009432883291"); $videosu = "#sd_src(.*?)thumbnail_src#si"; $parcala=preg_match_all($videosu,$video,$linkcek); foreach($linkcek[1] as $cekim){ $cekim=str_replace ("\u002522\u00253A\u002522https","http",$cekim); $cekim=str_replace ("\u002522\u00252C\u002522","",$cekim); $cekim=str_replace ("\u00253A\u00255C\u00252F\u00255C\u00252F","://",$cekim); $cekim=str_replace ("\u00255C\u00252F","/",$cekim); $cekim=str_replace ("\u00253F","?",$cekim); $cekim=str_replace ("\u00253D","=",$cekim); $cekim=str_replace ("\u002526","&amp;",$cekim); } //https://fbcdn-video-a.akamaihd.net/hvideo-ak-prn2/v/1210329_206230309559696_1056433056_n.mp4?oh=cfa0adf9a2d405182d2fde8c6ba096b3&amp;oe=5253103B&amp;__gda__=1381174812_0072c1253467444b2ab87c9663993d4f file_download($cekim,'dosya.mp4'); ?>

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.5.10.0080.01020.07
8.5.00.0080.01320.09
8.4.150.0030.00014.05
8.4.140.0120.00917.89
8.4.130.0100.01017.96
8.4.120.0050.00420.44
8.4.110.0050.00522.39
8.4.100.0100.00817.93
8.4.90.0110.01020.78
8.4.80.0080.01118.05
8.4.70.0090.01018.12
8.4.60.0130.00619.02
8.4.50.0090.01120.33
8.4.40.0030.01619.68
8.4.30.0140.00717.64
8.4.20.0150.00417.96
8.4.10.0060.00317.82
8.3.280.0110.01018.64
8.3.270.0110.01016.84
8.3.260.0080.00616.82
8.3.250.0110.00819.09
8.3.240.0110.01016.90
8.3.230.0060.00316.87
8.3.220.0110.00617.25
8.3.210.0100.00718.50
8.3.200.0050.00416.56
8.3.190.0100.00917.27
8.3.180.0050.00318.63
8.3.170.0130.00616.99
8.3.160.0160.00318.45
8.3.150.0150.00416.79
8.3.140.0040.00419.18
8.3.130.0090.00918.55
8.3.120.0090.00618.63
8.3.110.0100.01016.71
8.3.100.0120.00816.83
8.3.90.0110.00718.48
8.3.80.0030.00718.54
8.3.70.0140.00418.43
8.3.60.0120.00618.55
8.3.50.0130.00722.09
8.3.40.0070.01018.97
8.3.30.0150.00318.67
8.3.20.0000.00819.30
8.3.10.0040.00421.94
8.3.00.0060.00320.95
8.2.290.0160.00420.33
8.2.280.0110.00818.56
8.2.270.0070.01117.24
8.2.260.0090.00616.71
8.2.250.0080.00016.82
8.2.240.0160.00317.27
8.2.230.0060.00320.94
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0060.00318.29
8.2.190.0060.00918.39
8.2.180.0110.00417.00
8.2.170.0120.00922.96
8.2.160.0030.01319.16
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00320.38
8.2.120.0040.00426.35
8.2.110.0030.00719.45
8.2.100.0080.00419.65
8.2.90.0050.00319.05
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0050.00317.80
8.2.50.0000.00818.10
8.2.40.0030.00620.55
8.2.30.0050.00319.27
8.2.20.0040.00417.76
8.2.10.0000.00718.16
8.2.00.0060.00318.03
8.1.330.0100.00921.67
8.1.320.0140.00716.10
8.1.310.0100.00318.36
8.1.300.0060.00318.13
8.1.290.0060.00318.88
8.1.280.0070.00725.92
8.1.270.0070.00023.88
8.1.260.0060.00328.09
8.1.250.0000.00728.09
8.1.240.0080.00321.24
8.1.230.0030.00717.77
8.1.220.0030.00517.79
8.1.210.0040.00418.77
8.1.200.0030.00717.35
8.1.190.0000.00817.22
8.1.180.0060.00318.10
8.1.170.0090.00018.59
8.1.160.0070.00019.03
8.1.150.0080.00318.84
8.1.140.0070.00019.55
8.1.130.0030.00317.61
8.1.120.0080.00017.47
8.1.110.0000.00717.48
8.1.100.0070.00017.47
8.1.90.0030.00317.36
8.1.80.0000.00717.44
8.1.70.0000.00717.35
8.1.60.0040.00417.61
8.1.50.0050.00317.42
8.1.40.0030.00617.46
8.1.30.0060.00317.68
8.1.20.0040.00417.52
8.1.10.0040.00417.53
8.1.00.0040.00417.49
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0040.00418.38
8.0.270.0070.00017.18
8.0.260.0000.00817.41
8.0.250.0000.00717.11
8.0.240.0030.00317.07
8.0.230.0040.00416.93
8.0.220.0000.00717.03
8.0.210.0040.00417.02
8.0.200.0000.00717.05
8.0.190.0080.00016.99
8.0.180.0050.00217.04
8.0.170.0000.00717.03
8.0.160.0000.00717.04
8.0.150.0050.00316.82
8.0.140.0090.00016.99
8.0.130.0050.00013.45
8.0.120.0000.00716.96
8.0.110.0050.00316.91
8.0.100.0050.00216.94
8.0.90.0030.00417.04
8.0.80.0080.00816.94
8.0.70.0030.00617.06
8.0.60.0000.00716.85
8.0.50.0070.00016.82
8.0.30.0100.01017.04
8.0.20.0120.01117.40
8.0.10.0050.00316.97
8.0.00.0110.00617.07
7.4.330.0020.00215.11
7.4.320.0030.00316.41
7.4.300.0000.00616.39
7.4.290.0070.00016.58
7.4.280.0040.00416.60
7.4.270.0000.00716.57
7.4.260.0020.00516.36
7.4.250.0000.00716.55
7.4.240.0000.00716.61
7.4.230.0050.00316.67
7.4.220.0100.01316.45
7.4.210.0040.01116.45
7.4.200.0040.00416.41
7.4.160.0120.00416.59
7.4.150.0180.00717.40
7.4.140.0070.01017.86
7.4.130.0090.00816.42
7.4.120.0130.00816.52
7.4.110.0030.01316.37
7.4.100.0100.00716.80
7.4.90.0060.01116.54
7.4.80.0040.01419.39
7.4.70.0030.01316.45
7.4.60.0140.00916.50
7.4.50.0040.00816.56
7.4.40.0090.01616.43
7.4.30.0120.00616.73
7.4.10.0070.01115.07
7.4.00.0070.01014.95
7.3.330.0030.00313.36
7.3.320.0000.00513.18
7.3.310.0000.00716.38
7.3.300.0030.00316.18
7.3.290.0050.01116.34
7.3.280.0080.01016.33
7.3.270.0080.00817.40
7.3.260.0070.01016.44
7.3.250.0090.01216.47
7.3.240.0110.00816.50
7.3.230.0130.01016.39
7.3.210.0100.00716.50
7.3.200.0140.00316.63
7.3.190.0120.01216.23
7.3.180.0100.00616.62
7.3.170.0030.01916.43
7.3.160.0070.01316.48
7.3.130.0060.01214.89
7.3.120.0120.00514.79
7.3.110.0050.01214.99
7.3.100.0030.00814.87
7.3.90.0100.00314.76
7.3.80.0070.00814.91
7.3.70.0070.00714.92
7.3.60.0020.01114.66
7.3.50.0040.00914.86
7.3.40.0020.01014.87
7.3.30.0090.00714.91
7.3.20.0030.01016.67
7.3.10.0070.00316.69
7.3.00.0040.01016.64
7.2.330.0030.01316.80
7.2.320.0060.01516.58
7.2.310.0130.00316.48
7.2.300.0080.00816.64
7.2.290.0060.01316.41
7.2.260.0070.00715.11
7.2.250.0090.00915.00
7.2.240.0050.01314.83
7.2.230.0080.00815.05
7.2.220.0040.00814.65
7.2.210.0030.00814.94
7.2.200.0040.01114.87
7.2.190.0050.00714.77
7.2.180.0020.01014.86
7.2.170.0010.01114.97
7.2.160.0080.00414.94
7.2.150.0060.00616.69
7.2.140.0140.00016.63
7.2.130.0070.00916.77
7.2.120.0010.01016.80
7.2.110.0050.00916.77
7.2.100.0060.00716.65
7.2.90.0060.00616.92
7.2.80.0070.00516.90
7.2.70.0000.00916.88
7.2.60.0060.00916.75
7.2.50.0040.00616.89
7.2.40.0070.00716.79
7.2.30.0040.00916.71
7.2.20.0050.00816.95
7.2.10.0060.00816.74
7.2.00.0080.00717.43
7.1.330.0080.00815.80
7.1.320.0060.00815.69
7.1.310.0040.00915.55
7.1.300.0090.00315.61
7.1.290.0060.00515.71
7.1.280.0030.01015.72
7.1.270.0070.00715.42
7.1.260.0020.01015.76
7.1.250.0090.00715.65
7.1.240.0050.01015.57
7.1.230.0050.00815.70
7.1.220.0050.00915.56
7.1.210.0070.00715.54
7.1.200.0030.01015.68
7.1.190.0110.00315.74
7.1.180.0050.00715.63
7.1.170.0100.00315.65
7.1.160.0030.01015.68
7.1.150.0000.01015.73
7.1.140.0090.00315.69
7.1.130.0030.01315.73
7.1.120.0090.00515.42
7.1.110.0070.00515.56
7.1.100.0070.01016.39
7.1.90.0070.00315.48
7.1.80.0090.00115.82
7.1.70.0020.00916.02
7.1.60.0020.01416.82
7.1.50.0050.00616.12
7.1.40.0050.00615.59
7.1.30.0070.00815.49
7.1.20.0090.00315.77
7.1.10.0050.00715.75
7.1.00.0050.02918.01
7.0.330.0050.00515.33
7.0.320.0030.00715.28
7.0.310.0050.00615.37
7.0.300.0050.00715.32
7.0.290.0030.00815.27
7.0.280.0070.00615.16
7.0.270.0020.01115.32
7.0.260.0010.00715.13
7.0.250.0030.00815.30
7.0.240.0080.00515.35
7.0.230.0030.00915.39
7.0.220.0050.00715.34
7.0.210.0050.00815.32
7.0.200.0150.00815.06
7.0.190.0110.00515.44
7.0.180.0050.01115.35
7.0.170.0030.01015.40
7.0.160.0090.00515.26
7.0.150.0090.00415.30
7.0.140.0050.00715.34
7.0.130.0100.00415.43
7.0.120.0050.00715.35
7.0.110.0110.00315.30
7.0.100.0190.02916.82
7.0.90.0060.02416.75
7.0.80.0090.02417.03
7.0.70.0070.02916.79
7.0.60.0040.02516.76
7.0.50.0030.02017.03
7.0.40.0090.01815.68
7.0.30.0040.02215.63
7.0.20.0090.01515.72
7.0.10.0030.02415.66
7.0.00.0040.01715.55
5.6.400.0070.00714.09
5.6.390.0040.01113.83
5.6.380.0040.00914.25
5.6.370.0050.00714.04
5.6.360.0050.00713.85
5.6.350.0020.01114.21
5.6.340.0060.00313.88
5.6.330.0020.01314.20
5.6.320.0060.00614.38
5.6.310.0030.01213.86
5.6.300.0050.00514.21
5.6.290.0040.00614.50
5.6.280.0020.03116.47
5.6.270.0020.00914.30
5.6.260.0040.00914.15
5.6.250.0070.02116.35
5.6.240.0080.02316.35
5.6.230.0070.01916.21
5.6.220.0060.03116.41
5.6.210.0100.02616.38
5.6.200.0050.02416.37
5.6.190.0090.02516.47
5.6.180.0060.02816.43
5.6.170.0060.01716.45
5.6.160.0040.02716.32
5.6.150.0030.02216.53
5.6.140.0060.02016.46
5.6.130.0030.03316.49
5.6.120.0040.02216.49
5.6.110.0080.02216.32
5.6.100.0050.03316.38
5.6.90.0050.02216.39
5.6.80.0050.02616.03
5.6.70.0060.02716.22
5.6.60.0040.02616.22
5.6.50.0090.02016.29
5.6.40.0030.03016.34
5.6.30.0070.02516.21
5.6.20.0050.03016.31
5.6.10.0050.02916.23
5.6.00.0060.02816.17
5.5.380.0060.02915.15
5.5.370.0050.02015.16
5.5.360.0050.02515.23
5.5.350.0060.02015.33
5.5.340.0050.02315.41
5.5.330.0100.02515.38
5.5.320.0050.02515.32
5.5.310.0070.01915.38
5.5.300.0060.02015.24
5.5.290.0040.02715.23
5.5.280.0040.01715.43
5.5.270.0060.02115.28
5.5.260.0030.02215.39
5.5.250.0040.03115.31
5.5.240.0040.02915.05
5.5.230.0030.02115.02
5.5.220.0080.02014.97
5.5.210.0040.02815.13
5.5.200.0050.02714.96
5.5.190.0050.03315.20
5.5.180.0100.02715.06
5.5.170.0030.00512.48
5.5.160.0040.03215.12
5.5.150.0060.03015.15
5.5.140.0080.02415.02
5.5.130.0100.02615.12
5.5.120.0070.02115.18
5.5.110.0050.02415.05
5.5.100.0050.03015.06
5.5.90.0070.02615.10
5.5.80.0050.02815.04
5.5.70.0060.02815.18
5.5.60.0090.02615.08
5.5.50.0070.01614.95
5.5.40.0110.01715.10
5.5.30.0030.01915.09
5.5.20.0080.01614.97
5.5.10.0030.02715.04
5.5.00.0050.01714.95
5.4.450.0030.03015.20
5.4.440.0080.03015.27
5.4.430.0050.02915.22
5.4.420.0050.02815.19
5.4.410.0110.03615.23
5.4.400.0060.03714.98
5.4.390.0050.03215.08
5.4.380.0060.02015.04
5.4.370.0070.02014.94
5.4.360.0070.03515.05
5.4.350.0050.02314.95
5.4.340.0030.04515.08
5.4.330.0030.00311.00
5.4.320.0070.04215.03
5.4.310.0050.03515.09
5.4.300.0050.02515.09
5.4.290.0060.02815.10
5.4.280.0080.03214.93
5.4.270.0060.03615.15
5.4.260.0000.04614.96
5.4.250.0050.03914.97
5.4.240.0050.03215.08
5.4.230.0080.04015.09
5.4.220.0070.03315.10
5.4.210.0040.03715.08
5.4.200.0100.02815.01
5.4.190.0030.03914.93
5.4.180.0040.02015.13
5.4.170.0080.02815.02
5.4.160.0020.04415.13
5.4.150.0030.04514.93
5.4.140.0050.04313.77
5.4.130.0030.03813.72
5.4.120.0050.02813.62
5.4.110.0040.02713.72
5.4.100.0090.03513.74
5.4.90.0030.04113.78
5.4.80.0020.03213.71
5.4.70.0050.02013.78
5.4.60.0030.02013.70
5.4.50.0050.03413.68
5.4.40.0070.02613.79
5.4.30.0020.04013.65
5.4.20.0030.02613.68
5.4.10.0050.02913.74
5.4.00.0070.03113.37
5.3.290.0030.03812.86
5.3.280.0020.03512.84
5.3.270.0050.04012.80
5.3.260.0030.03912.85
5.3.250.0050.03812.84
5.3.240.0060.02812.81
5.3.230.0060.02612.78
5.3.220.0060.04012.83
5.3.210.0030.04312.83
5.3.200.0030.02812.81
5.3.190.0050.03812.88
5.3.180.0020.04312.78
5.3.170.0090.02212.77
5.3.160.0050.02812.84
5.3.150.0020.04112.83
5.3.140.0020.03412.85
5.3.130.0010.03612.76
5.3.120.0020.04012.83
5.3.110.0070.02312.79
5.3.100.0050.02812.56
5.3.90.0040.04212.53
5.3.80.0000.04012.55
5.3.70.0060.02612.49
5.3.60.0050.02512.54
5.3.50.0040.02512.51
5.3.40.0050.03512.50
5.3.30.0050.02812.51
5.3.20.0030.03912.39
5.3.10.0050.02712.33
5.3.00.0130.02312.36
5.2.170.0000.02911.15
5.2.160.0060.02611.10
5.2.150.0050.02411.11
5.2.140.0020.02211.14
5.2.130.0030.02411.08
5.2.120.0070.01511.11
5.2.110.0060.01711.10
5.2.100.0040.02511.08
5.2.90.0020.01711.02
5.2.80.0050.02511.01
5.2.70.0050.02311.12
5.2.60.0070.02011.07
5.2.50.0050.02211.05
5.2.40.0050.02811.05
5.2.30.0000.02711.01
5.2.20.0060.02211.00
5.2.10.0050.02610.95
5.2.00.0040.02510.88
5.1.60.0020.02510.83
5.1.50.0080.02410.83
5.1.40.0030.02010.83
5.1.30.0060.01810.83
5.1.20.0030.02810.83
5.1.10.0030.01610.83
5.1.00.0030.02010.83
5.0.50.0020.02110.83
5.0.40.0030.01610.83
5.0.30.0030.02610.83
5.0.20.0050.01510.83
5.0.10.0030.02410.83
5.0.00.0020.02310.83
4.4.90.0020.01310.83
4.4.80.0020.01910.83
4.4.70.0040.01010.83
4.4.60.0000.01710.83
4.4.50.0030.01510.83
4.4.40.0000.02510.83
4.4.30.0040.02010.83
4.4.20.0020.01210.83
4.4.10.0020.01810.83
4.4.00.0030.02210.83
4.3.110.0020.01210.83
4.3.100.0000.01510.83
4.3.90.0000.01810.83
4.3.80.0010.01510.83
4.3.70.0030.01010.83
4.3.60.0000.01010.83
4.3.50.0020.01210.83
4.3.40.0060.01510.83
4.3.30.0010.01510.83
4.3.20.0020.01510.83
4.3.10.0020.01510.83
4.3.00.0010.01610.83

preferences:
45.14 ms | 403 KiB | 5 Q