3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = array(); $thumb = array(); $string = ''; preg_match_all("/\<div class=\"merchant_info\">\s*(\<div.*?\<\/div>\s*)?(.*?)\<\/div\>/is", $res[0], $matches ); foreach($matches[0] as $titles){ $title[] = "<div class='titles' >".$titles."</div>"; } preg_match_all("/\<a class=\"thumb\"(.*?)\<\/a\>/is", $res[0], $matches); foreach($matches[0] as $thumbs){ $thumb[] = "<div class='thumbs' >".$thumbs."</div>"; } for($i = 0; $i < count($title); $i++){ $string .= $title[$i] . $thumb[$i]; } echo $string;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 17
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 32
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 32
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 35
Branch analysis from position: 43
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 43, Position 2 = 35
Branch analysis from position: 43
Branch analysis from position: 35
Branch analysis from position: 32
Branch analysis from position: 17
filename:       /in/mjiLR
function name:  (null)
number of ops:  45
compiled vars:  !0 = $title, !1 = $thumb, !2 = $string, !3 = $res, !4 = $matches, !5 = $titles, !6 = $thumbs, !7 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, ''
    7     3        INIT_FCALL                                               'preg_match_all'
          4        SEND_VAL                                                 '%2F%5C%3Cdiv+class%3D%22merchant_info%22%3E%5Cs%2A%28%5C%3Cdiv.%2A%3F%5C%3C%5C%2Fdiv%3E%5Cs%2A%29%3F%28.%2A%3F%29%5C%3C%5C%2Fdiv%5C%3E%2Fis'
          5        FETCH_DIM_R                                      ~11     !3, 0
          6        SEND_VAL                                                 ~11
          7        SEND_REF                                                 !4
          8        DO_ICALL                                                 
    8     9        FETCH_DIM_R                                      ~13     !4, 0
         10      > FE_RESET_R                                       $14     ~13, ->17
         11    > > FE_FETCH_R                                               $14, !5, ->17
   10    12    >   CONCAT                                           ~16     '%3Cdiv+class%3D%27titles%27+%3E', !5
         13        CONCAT                                           ~17     ~16, '%3C%2Fdiv%3E'
         14        ASSIGN_DIM                                               !0
         15        OP_DATA                                                  ~17
    8    16      > JMP                                                      ->11
         17    >   FE_FREE                                                  $14
   13    18        INIT_FCALL                                               'preg_match_all'
         19        SEND_VAL                                                 '%2F%5C%3Ca+class%3D%22thumb%22%28.%2A%3F%29%5C%3C%5C%2Fa%5C%3E%2Fis'
         20        FETCH_DIM_R                                      ~18     !3, 0
         21        SEND_VAL                                                 ~18
         22        SEND_REF                                                 !4
         23        DO_ICALL                                                 
   14    24        FETCH_DIM_R                                      ~20     !4, 0
         25      > FE_RESET_R                                       $21     ~20, ->32
         26    > > FE_FETCH_R                                               $21, !6, ->32
   16    27    >   CONCAT                                           ~23     '%3Cdiv+class%3D%27thumbs%27+%3E', !6
         28        CONCAT                                           ~24     ~23, '%3C%2Fdiv%3E'
         29        ASSIGN_DIM                                               !1
         30        OP_DATA                                                  ~24
   14    31      > JMP                                                      ->26
         32    >   FE_FREE                                                  $21
   19    33        ASSIGN                                                   !7, 0
         34      > JMP                                                      ->40
   21    35    >   FETCH_DIM_R                                      ~26     !0, !7
         36        FETCH_DIM_R                                      ~27     !1, !7
         37        CONCAT                                           ~28     ~26, ~27
         38        ASSIGN_OP                                     8          !2, ~28
   19    39        PRE_INC                                                  !7
         40    >   COUNT                                            ~31     !0
         41        IS_SMALLER                                               !7, ~31
         42      > JMPNZ                                                    ~32, ->35
   25    43    >   ECHO                                                     !2
         44      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.71 ms | 1400 KiB | 15 Q