3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for www.pkpu.or.id 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 for www.pkpu.or.id failed: System error in /in/LUPO1 on line 8 <table border='1'></tr><tr></tr></table>
Output for 8.0.13 - 8.0.30
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 8.0.0 - 8.0.12
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution 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: Temporary failure in name resolution in /in/LUPO1 on line 8 <table border='1'></tr><tr></tr></table>
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.3.32 - 7.3.33, 7.4.0 - 7.4.1, 7.4.26 - 7.4.33
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 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.3 - 7.4.25
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution 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: Temporary failure in name resolution in /in/LUPO1 on line 8 <table border='1'></tr><tr></tr></table>

preferences:
253.08 ms | 402 KiB | 371 Q