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/"; $opt = array("http" => array('ignore_errors' => true)); $options = array( 'http' => array( 'method' => 'GET', 'header' => 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A403 Safari/8536.25', ), ); $context = stream_context_create($options); //ファイル取得 $file = file_get_contents($url, false, $context); $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 />"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 30, Position 2 = 35
Branch analysis from position: 30
2 jumps found. (Code = 78) Position 1 = 31, Position 2 = 35
Branch analysis from position: 31
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
filename:       /in/cjPlY
function name:  (null)
number of ops:  37
compiled vars:  !0 = $url, !1 = $opt, !2 = $options, !3 = $context, !4 = $file, !5 = $namepat, !6 = $data, !7 = $date, !8 = $dates, !9 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3DUTF-8%22%3E%0A'
    3     1        ASSIGN                                                   !0, 'http%3A%2F%2Fapt.saurik.com%2Fdebs%2F'
    4     2        ASSIGN                                                   !1, <array>
    6     3        ASSIGN                                                   !2, <array>
   12     4        INIT_FCALL                                               'stream_context_create'
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                         $13     
          7        ASSIGN                                                   !3, $13
   15     8        INIT_FCALL                                               'file_get_contents'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 <false>
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $15     
         13        ASSIGN                                                   !4, $15
   17    14        ASSIGN                                                   !5, '%2F%3Ca.%2A%3F%3C%5C%2Fa%3E%22.%2A%3F%22%2F'
   19    15        INIT_FCALL                                               'preg_match_all'
         16        SEND_VAR                                                 !5
         17        SEND_VAR                                                 !4
         18        SEND_REF                                                 !6
         19        SEND_VAL                                                 2
         20        DO_ICALL                                                 
   22    21        INIT_FCALL                                               'time'
         22        DO_ICALL                                         $19     
         23        ASSIGN                                                   !7, $19
   23    24        INIT_FCALL                                               'date'
         25        SEND_VAL                                                 'Y%2Fm%2Fd+H%3Ai%3As'
         26        SEND_VAR                                                 !7
         27        DO_ICALL                                         $21     
         28        ASSIGN                                                   !8, $21
   27    29      > FE_RESET_R                                       $23     !6, ->35
         30    > > FE_FETCH_R                                               $23, !9, ->35
   28    31    >   FETCH_DIM_R                                      ~24     !9, 0
         32        CONCAT                                           ~25     ~24, '%3Cbr+%2F%3E'
         33        ECHO                                                     ~25
   27    34      > JMP                                                      ->30
         35    >   FE_FREE                                                  $23
   29    36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.03 ms | 1396 KiB | 23 Q