3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curl = curl_init("https://www.facebook.com/plugins/fan.php?connections=10000&id=15087023444"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1"); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); $data = curl_exec($curl); curl_close($curl); $data = preg_replace("%(.*?)(<div id.*?>)%is","",$data); echo "HOLA\n"; $text = file_get_contents('rawnike.php'); // $text = file_get_contents('http://www.facebook.com/plugins/fan.php?connections=10000&id=15087023444'); $text = preg_replace("/<script[^>]+\>/i", "", $text); $text = preg_replace("/<img[^>]+\>/i", "", $text); $pattern = '!(https?://[^\s]+)!'; // refine this for better/more specific results if (preg_match_all($pattern, $text, $matches)) { list(, $links) = ($matches); //print_r($links); //var_dump($links); } unset($links[0]);unset($links[1]);unset($links[2]);unset($links[3]);unset($links[4]);unset($links[5]);unset($links[6]);unset($links[7]); //var_dump($links); $links=str_replace('https','http',$links); $links=str_replace('\"','',$links); foreach ($links as $value) { echo "fb user ID: $value<br />\n"; }

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.70.0140.00716.63
8.3.60.0140.00716.75
8.3.50.0120.00618.12
8.3.40.0070.00719.02
8.3.30.0060.00918.99
8.3.20.0050.00318.90
8.3.10.0000.00820.57
8.3.00.0060.00319.38
8.2.180.0070.01416.75
8.2.170.0160.00618.91
8.2.160.0100.00722.96
8.2.150.0130.00624.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0040.00419.71
8.2.110.0090.00321.03
8.2.100.0120.00017.80
8.2.90.0000.00819.17
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0030.00617.91
8.2.50.0080.00018.07
8.2.40.0050.00318.03
8.2.30.0000.00917.91
8.2.20.0000.00817.77
8.2.10.0040.00417.71
8.2.00.0060.00317.71
8.1.280.0060.01225.92
8.1.270.0110.00423.99
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0090.00021.25
8.1.230.0090.00317.46
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00717.10
8.1.190.0040.00417.10
8.1.180.0090.00018.10
8.1.170.0060.00318.91
8.1.160.0050.00218.80
8.1.150.0060.00318.54
8.1.140.0080.00017.41
8.1.130.0000.00717.88
8.1.120.0050.00217.33
8.1.110.0040.00417.28
8.1.100.0000.00717.26
8.1.90.0000.00717.37
8.1.80.0000.00717.27
8.1.70.0040.00417.34
8.1.60.0000.00717.49
8.1.50.0000.00717.42
8.1.40.0080.00017.47
8.1.30.0040.00417.55
8.1.20.0040.00417.52
8.1.10.0040.00417.47
8.1.00.0040.00417.47
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0000.00718.32
8.0.270.0040.00417.13
8.0.260.0030.00316.81
8.0.250.0070.00016.93
8.0.240.0000.00816.98
8.0.230.0070.00017.00
8.0.220.0000.00716.80
8.0.210.0030.00516.81
8.0.200.0000.00616.99
8.0.190.0080.00016.97
8.0.180.0000.00717.03
8.0.170.0080.00016.87
8.0.160.0050.00316.94
8.0.150.0040.00416.94
8.0.140.0040.00616.90
8.0.130.0030.00313.36
8.0.120.0040.00416.92
8.0.110.0000.00716.97
8.0.100.0040.00416.87
8.0.90.0030.00516.83
8.0.80.0060.01016.95
8.0.70.0020.00516.96
8.0.60.0040.00416.92
8.0.50.0000.00816.86
8.0.30.0160.00516.96
8.0.20.0100.01317.05
8.0.10.0000.00717.00
8.0.00.0050.01216.65
7.4.330.0000.00512.87
7.4.320.0000.00616.27
7.4.300.0030.00316.56
7.4.290.0040.00416.61
7.4.280.0070.00016.41
7.4.270.0000.00616.59
7.4.260.0030.00313.24
7.4.250.0060.00316.52
7.4.240.0040.00316.50
7.4.230.0000.00616.38
7.4.220.0110.01416.57
7.4.210.0040.01116.51
7.4.200.0070.00016.55
7.4.190.0020.00516.64
7.4.160.0060.01016.58
7.4.150.0120.00616.66
7.4.140.0110.00916.56
7.4.130.0100.00716.54
7.4.120.0130.00616.57
7.4.110.0120.00616.49
7.4.100.0100.00716.41
7.4.90.0120.00616.45
7.4.80.0060.01016.30
7.4.70.0120.00616.42
7.4.60.0100.01016.59
7.4.50.0000.00716.45
7.4.40.0040.01516.35
7.4.30.0060.00916.62
7.4.00.0070.01014.62
7.3.330.0030.00313.01
7.3.320.0030.00313.14
7.3.310.0040.00216.20
7.3.300.0040.00416.31
7.3.290.0100.01016.28
7.3.280.0080.00816.30
7.3.270.0130.01916.48
7.3.260.0120.00916.32
7.3.250.0140.00816.55
7.3.240.0060.01116.59
7.3.230.0070.01016.29
7.3.210.0090.00916.50
7.3.200.0030.01519.39
7.3.190.0030.01316.60
7.3.180.0080.00816.55
7.3.170.0060.01316.38
7.3.160.0060.00916.27
7.3.120.0090.00314.82
7.2.330.0030.01416.26
7.2.320.0090.00916.54
7.2.310.0060.02316.60
7.2.300.0040.01216.28
7.2.290.0000.02216.30
7.2.60.0070.00716.76
7.2.00.0070.00419.33
7.1.200.0170.00715.64
7.1.100.0040.00717.80
7.1.70.0000.01116.86
7.1.60.0070.01419.40
7.1.50.0100.01316.48
7.1.00.0000.05322.40
7.0.200.0120.00414.50
7.0.140.0000.07722.07
7.0.110.0000.04721.84
7.0.100.0070.04721.68
7.0.90.0130.03021.74
7.0.80.0000.04321.82
7.0.70.0030.04021.64
7.0.60.0000.04721.84
7.0.50.0030.05321.86
7.0.40.0000.04319.82
7.0.30.0030.04019.82
7.0.20.0000.03719.73
7.0.10.0030.04019.67
7.0.00.0170.04019.72
5.6.260.0000.03720.75
5.6.250.0130.06020.74
5.6.240.0030.04020.49
5.6.230.0030.04020.57
5.6.220.0070.03320.68
5.6.210.0070.03720.69
5.6.200.0000.04320.87
5.6.190.0170.03020.62
5.6.180.0000.04020.59
5.6.170.0000.04320.86
5.6.160.0070.03320.67
5.6.150.0100.03320.57
5.6.140.0070.04020.71
5.6.130.0030.07320.68
5.6.120.0030.08720.61
5.6.110.0100.07020.64
5.6.100.0130.07320.63
5.6.90.0030.08020.84
5.6.80.0030.07719.96
5.6.70.0030.04020.01
5.6.60.0000.04019.97
5.6.50.0100.07720.09
5.6.40.0130.06719.93
5.6.30.0000.06019.96
5.6.20.0130.06020.01
5.6.10.0100.04320.01
5.6.00.0130.07019.98
5.5.380.0030.03717.55
5.5.370.0000.05717.63
5.5.360.0030.03717.51
5.5.350.0000.05017.48
5.5.340.0070.05318.13
5.5.330.0000.04718.09
5.5.320.0030.04018.01
5.5.310.0000.04318.15
5.5.300.0070.03717.86
5.5.290.0000.04317.85
5.5.280.0030.04018.09
5.5.270.0070.08318.00
5.5.260.0070.07318.09
5.5.250.0070.03317.94
5.5.240.0030.07717.64
5.5.230.0070.07317.53
5.5.220.0000.07017.39
5.5.210.0030.05717.24
5.5.200.0100.06717.21
5.5.190.0000.08717.47
5.5.180.0070.07317.21
5.5.160.0100.07017.60
5.5.150.0000.06017.20
5.5.140.0030.06317.47
5.5.130.0030.04317.44
5.5.120.0000.06317.37
5.5.110.0000.06717.19
5.5.100.0000.04317.28
5.5.90.0070.07317.26
5.5.80.0030.07717.37
5.5.70.0030.05717.50
5.5.60.0030.07717.37
5.5.50.0030.07017.11
5.5.40.0070.04017.37
5.5.30.0100.04017.37
5.5.20.0030.07317.13
5.5.10.0070.05017.50
5.5.00.0100.07317.40
5.4.450.0030.04019.28
5.4.440.0030.05019.35
5.4.430.0030.07319.32
5.4.420.0070.08019.35
5.4.410.0100.07319.36
5.4.400.0000.07719.25
5.4.390.0000.04019.00
5.4.380.0030.07719.25
5.4.370.0030.05718.95
5.4.360.0000.09019.10
5.4.350.0030.07319.00
5.4.340.0170.06319.25
5.4.320.0070.03719.27
5.4.310.0000.08019.07
5.4.300.0030.04319.13
5.4.290.0030.07719.24
5.4.280.0170.06719.11
5.4.270.0070.03718.98
5.4.260.0100.03718.95
5.4.250.0030.07719.02
5.4.240.0030.05019.03
5.4.230.0030.04719.24
5.4.220.0000.04719.02
5.4.210.0070.04718.92
5.4.200.0030.07319.00
5.4.190.0000.06719.07
5.4.180.0100.07019.23
5.4.170.0070.08019.15
5.4.160.0100.07018.93
5.4.150.0000.07718.96
5.4.140.0000.06316.22
5.4.130.0100.06016.49
5.4.120.0100.06716.34
5.4.110.0130.06316.24
5.4.100.0100.02716.14
5.4.90.0000.07716.14
5.4.80.0030.07016.49
5.4.70.0070.06716.49
5.4.60.0030.07316.52
5.4.50.0070.04016.26
5.4.40.0070.03016.43
5.4.30.0070.06716.38
5.4.20.0000.03716.11
5.4.10.0100.07716.38
5.4.00.0070.02716.01
5.3.290.0070.05314.63
5.3.280.0030.06014.56
5.3.270.0000.08014.56
5.3.260.0030.06714.46
5.3.250.0100.06714.50
5.3.240.0030.05014.72
5.3.230.0030.08014.48
5.3.220.0000.07714.37
5.3.210.0000.08014.58
5.3.200.0130.06714.52
5.3.190.0030.06314.37
5.3.180.0070.06314.52
5.3.170.0030.03714.36
5.3.160.0000.03714.60
5.3.150.0030.07714.50
5.3.140.0030.08014.45
5.3.130.0000.06714.48
5.3.120.0070.06714.66
5.3.110.0000.04314.49
5.3.100.0030.05313.84
5.3.90.0030.07314.03
5.3.80.0030.07313.91
5.3.70.0100.07014.10
5.3.60.0000.06013.86
5.3.50.0070.05714.05
5.3.40.0030.07314.03
5.3.30.0030.05013.99
5.3.20.0070.06713.72
5.3.10.0070.06013.54
5.3.00.0000.04013.51
5.2.170.0030.05311.90
5.2.160.0030.06311.90
5.2.150.0100.05711.90
5.2.140.0030.02711.90
5.2.130.0030.05311.90
5.2.120.0000.04711.90
5.2.110.0000.04311.90
5.2.100.0100.02011.90
5.2.90.0000.04711.90
5.2.80.0030.04011.90
5.2.70.0070.05311.90
5.2.60.0030.06311.90
5.2.50.0070.05011.90
5.2.40.0030.06011.90
5.2.30.0000.03311.90
5.2.20.0000.06311.90
5.2.10.0030.03011.90
5.2.00.0030.05011.90
5.1.60.0030.05311.90
5.1.50.0030.05011.90
5.1.40.0000.05711.90
5.1.30.0000.05311.90
5.1.20.0000.04011.90
5.1.10.0000.05011.90
5.1.00.0000.05311.90
5.0.50.0130.02711.90
5.0.40.0030.04311.90
5.0.30.0030.06311.90
5.0.20.0070.03011.90
5.0.10.0030.03711.90
5.0.00.0070.06011.90
4.4.90.0000.01311.90
4.4.80.0070.02711.90
4.4.70.0000.01711.90
4.4.60.0030.03011.90
4.4.50.0000.03711.90
4.4.40.0000.05311.90
4.4.30.0030.03311.90
4.4.20.0000.03311.90
4.4.10.0000.03311.90
4.4.00.0000.05711.90
4.3.110.0000.03311.90
4.3.100.0030.03311.90
4.3.90.0000.01711.90
4.3.80.0000.05311.90
4.3.70.0000.02311.90
4.3.60.0000.03011.90
4.3.50.0000.02711.90
4.3.40.0030.04711.90
4.3.30.0000.01711.90
4.3.20.0000.03711.90
4.3.10.0000.03311.90
4.3.00.0000.02011.90

preferences:
46.4 ms | 401 KiB | 5 Q