3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php 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"; }
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
HOLA Warning: file_get_contents(rawnike.php): failed to open stream: No such file or directory in /in/WGCQF on line 3 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 20 Warning: Invalid argument supplied for foreach() in /in/WGCQF on line 21
Output for hhvm-3.10.0 - 3.12.0
HOLA Warning: No such file or directory in /in/WGCQF on line 3 Notice: Undefined variable: links in /in/WGCQF on line 20 Warning: Invalid argument supplied for foreach() in /in/WGCQF on line 23
Output for 4.3.2 - 4.3.10, 4.4.0 - 5.0.3
HOLA Warning: file_get_contents(rawnike.php): failed to open stream: No such file or directory in /in/WGCQF on line 3 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 20 Warning: Invalid argument supplied for foreach() in /in/WGCQF on line 21
Output for 4.3.11
HOLA Warning: file_get_contents(rawnike.php): failed to open stream: No such file or directory in /in/WGCQF on line 3 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 20
Output for 4.3.0 - 4.3.1
HOLA Warning: file_get_contents(rawnike.php) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/WGCQF on line 3 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 18 Notice: Undefined variable: links in /in/WGCQF on line 20 Warning: Invalid argument supplied for foreach() in /in/WGCQF on line 21