3v4l.org

run code in 300+ PHP versions simultaneously
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <?php $url = "http://apt.saurik.com/debs/"; //ファイル取得 $file = file_get_contents($url); $namepat = '/<a.*?<\/a>".*?"/'; preg_match_all($namepat, $file, $data, PREG_SET_ORDER); //日付を先に取得 $date = time(); $dates = date("Y/m/d H:i:s",$date); //echo date("Y/m/d H:i:s",$date); foreach ($data as $name) { echo $name[0]."<br />"; } if (!$data) { return false; }
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.4.0 - 7.4.1
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/LNtUZ on line 6 Warning: file_get_contents(http://apt.saurik.com/debs/): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/LNtUZ on line 6

preferences:
177.55 ms | 404 KiB | 242 Q