3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? $page = file_get_contents('http://fanpagelist.com/category/top_users/view/list/sort/fans/page1'); preg_match_all('/(?:\/like_box\.php\?id=(\d*))|(?:graph\.facebook\.com\/(\d*)\/picture)/', $page, $result, PREG_SET_ORDER); foreach ($result as $row) { echo "<p><b>$row[1]</b> $row[2]</p>\n"; }
Output for 5.4.0 - 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/DoaF9 on line 2 Warning: file_get_contents(http://fanpagelist.com/category/top_users/view/list/sort/fans/page1): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/DoaF9 on line 2
Output for 4.3.0 - 5.3.29
<? $page = file_get_contents('http://fanpagelist.com/category/top_users/view/list/sort/fans/page1'); preg_match_all('/(?:\/like_box\.php\?id=(\d*))|(?:graph\.facebook\.com\/(\d*)\/picture)/', $page, $result, PREG_SET_ORDER); foreach ($result as $row) { echo "<p><b>$row[1]</b> $row[2]</p>\n"; }