3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.0 - 5.3.18, 5.4.0 - 5.4.8
Parse error: syntax error, unexpected '/' in /in/YhS3P on line 24
Process exited with code 255.

preferences:
171.75 ms | 1395 KiB | 35 Q