3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array(); $url = base64_decode('aHR0cDovL3d3dy5ob25nZmFuZ2ViYnMuY29tL2ZvcnVtLnBocD9tb2Q9Zm9ydW1kaXNwbGF5JmZpZD00MSZwYWdlPXtwYWdlfQ=='); $video_url = base64_decode('aHR0cDovLzh1NG50OTFlOGZnejJxbmo0dG01Nmp5eGFzeXAyYmZ4NTZqZ3plLnppY2RuLmNvbS92aWRlb3dtL3t1cmx9LmZsdg=='); $preg_rule = '/\<img\s+src\=\"([^<]*)\"\s+alt\=\"([^<]*)\"\s+width\=\"358\"\s+\/\>/isU'; for($i = 1; $i<= 50 ; $i++){ $real_url = str_replace('{page}',$i,$url); $html = file_get_contents($real_url); preg_match_all($preg_rule,$html,$match); foreach($match[1] as $k=>$v){ $data[] = array('img'=>$match[1][$k],'title'=>$match[2][$k],'url'=> str_replace('{url}',$match[2][$k],$video_url)); } } print_r($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 50
Branch analysis from position: 50
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 12
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 29, Position 2 = 48
Branch analysis from position: 29
2 jumps found. (Code = 78) Position 1 = 30, Position 2 = 48
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 52, Position 2 = 12
Branch analysis from position: 52
Branch analysis from position: 12
Branch analysis from position: 48
filename:       /in/kYXCK
function name:  (null)
number of ops:  56
compiled vars:  !0 = $data, !1 = $url, !2 = $video_url, !3 = $preg_rule, !4 = $i, !5 = $real_url, !6 = $html, !7 = $match, !8 = $v, !9 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'base64_decode'
          2        SEND_VAL                                                 'aHR0cDovL3d3dy5ob25nZmFuZ2ViYnMuY29tL2ZvcnVtLnBocD9tb2Q9Zm9ydW1kaXNwbGF5JmZpZD00MSZwYWdlPXtwYWdlfQ%3D%3D'
          3        DO_ICALL                                         $11     
          4        ASSIGN                                                   !1, $11
    5     5        INIT_FCALL                                               'base64_decode'
          6        SEND_VAL                                                 'aHR0cDovLzh1NG50OTFlOGZnejJxbmo0dG01Nmp5eGFzeXAyYmZ4NTZqZ3plLnppY2RuLmNvbS92aWRlb3dtL3t1cmx9LmZsdg%3D%3D'
          7        DO_ICALL                                         $13     
          8        ASSIGN                                                   !2, $13
    6     9        ASSIGN                                                   !3, '%2F%5C%3Cimg%5Cs%2Bsrc%5C%3D%5C%22%28%5B%5E%3C%5D%2A%29%5C%22%5Cs%2Balt%5C%3D%5C%22%28%5B%5E%3C%5D%2A%29%5C%22%5Cs%2Bwidth%5C%3D%5C%22358%5C%22%5Cs%2B%5C%2F%5C%3E%2FisU'
    7    10        ASSIGN                                                   !4, 1
         11      > JMP                                                      ->50
    8    12    >   INIT_FCALL                                               'str_replace'
         13        SEND_VAL                                                 '%7Bpage%7D'
         14        SEND_VAR                                                 !4
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $17     
         17        ASSIGN                                                   !5, $17
    9    18        INIT_FCALL                                               'file_get_contents'
         19        SEND_VAR                                                 !5
         20        DO_ICALL                                         $19     
         21        ASSIGN                                                   !6, $19
   10    22        INIT_FCALL                                               'preg_match_all'
         23        SEND_VAR                                                 !3
         24        SEND_VAR                                                 !6
         25        SEND_REF                                                 !7
         26        DO_ICALL                                                 
   11    27        FETCH_DIM_R                                      ~22     !7, 1
         28      > FE_RESET_R                                       $23     ~22, ->48
         29    > > FE_FETCH_R                                       ~24     $23, !8, ->48
         30    >   ASSIGN                                                   !9, ~24
   12    31        FETCH_DIM_R                                      ~27     !7, 1
         32        FETCH_DIM_R                                      ~28     ~27, !9
         33        INIT_ARRAY                                       ~29     ~28, 'img'
         34        FETCH_DIM_R                                      ~30     !7, 2
         35        FETCH_DIM_R                                      ~31     ~30, !9
         36        ADD_ARRAY_ELEMENT                                ~29     ~31, 'title'
         37        INIT_FCALL                                               'str_replace'
         38        SEND_VAL                                                 '%7Burl%7D'
         39        FETCH_DIM_R                                      ~32     !7, 2
         40        FETCH_DIM_R                                      ~33     ~32, !9
         41        SEND_VAL                                                 ~33
         42        SEND_VAR                                                 !2
         43        DO_ICALL                                         $34     
         44        ADD_ARRAY_ELEMENT                                ~29     $34, 'url'
         45        ASSIGN_DIM                                               !0
         46        OP_DATA                                                  ~29
   11    47      > JMP                                                      ->29
         48    >   FE_FREE                                                  $23
    7    49        PRE_INC                                                  !4
         50    >   IS_SMALLER_OR_EQUAL                                      !4, 50
         51      > JMPNZ                                                    ~36, ->12
   15    52    >   INIT_FCALL                                               'print_r'
         53        SEND_VAR                                                 !0
         54        DO_ICALL                                                 
         55      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.4 ms | 1400 KiB | 23 Q