3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Mengambil Content di Situs Lain dengan file_get_contents dan Regex // by : Loka Dwiartara // http://www.ilmuwebsite.com // file get.content.php.txt $text = file_get_contents("http://www.pkpu.or.id/adzan.php?id=83"); echo "<table border='1'>"; preg_match_all('#<tr\sclass=\"table_header(.+?)>(.+?)</tr>#siu', $text, $result); for ($x = 0, $jumlah = count($result[0]); $x < $jumlah; $x++) { echo $result[2][$x] . "\n"; } echo "</tr><tr>"; preg_match_all('#<tr\sclass=\"table_highlight(.+?)>(.+?)</tr>#siu', $text, $result); for ($x = 0, $jumlah = count($result[0]); $x < $jumlah; $x++) { echo $result[2][$x] . "\n"; } echo "</tr></table>"; ?>
Output for 5.3.18 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4, 7.0.20, 7.1.5 - 7.2.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/LUPO1 on line 8 Warning: file_get_contents(http://www.pkpu.or.id/adzan.php?id=83): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/LUPO1 on line 8 <table border='1'></tr><tr></tr></table>
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 7.0.3, 7.0.5 - 7.0.6, 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/LUPO1 on line 8 Warning: file_get_contents(http://www.pkpu.or.id/adzan.php?id=83): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/LUPO1 on line 8 <table border='1'></tr><tr></tr></table>