3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v = '<tr><td class="goto_topic" style="padding-left:26px"><a href="#" onclick="window.parent.opener.location=\'page_B3_30040.html\';window.parent.close();">113. Branch 3 - 02003050070-02-02 - Page 5 of 5</a></td></tr>'; $split_char = 'close();">'; $filter1 = explode($split_char, $v)[1]; $split_char = '</a>'; $filter2 = explode($split_char, $filter1)[0]; $has_close = strpos($filter2, 'close();">'); $has_branch = strpos($filter2, " Branch "); $has_page = strpos($filter2, "Page"); //@@DEBUG: echo " HAS CLOSE[" . $has_close . "], HAS BRANCH: [" . $has_branch . "], HAS PAGE: [" . $has_page . "] --> \n[" . $filter2 . "]";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k8hC9
function name:  (null)
number of ops:  40
compiled vars:  !0 = $v, !1 = $split_char, !2 = $filter1, !3 = $filter2, !4 = $has_close, !5 = $has_branch, !6 = $has_page
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Ctr%3E%3Ctd+class%3D%22goto_topic%22+style%3D%22padding-left%3A26px%22%3E%3Ca+href%3D%22%23%22+onclick%3D%22window.parent.opener.location%3D%27page_B3_30040.html%27%3Bwindow.parent.close%28%29%3B%22%3E113.+Branch+3+-+02003050070-02-02+-+Page+5+of+5%3C%2Fa%3E%3C%2Ftd%3E%3C%2Ftr%3E'
    5     1        ASSIGN                                                   !1, 'close%28%29%3B%22%3E'
    6     2        INIT_FCALL                                               'explode'
          3        SEND_VAR                                                 !1
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $9      
          6        FETCH_DIM_R                                      ~10     $9, 1
          7        ASSIGN                                                   !2, ~10
    7     8        ASSIGN                                                   !1, '%3C%2Fa%3E'
    8     9        INIT_FCALL                                               'explode'
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $13     
         13        FETCH_DIM_R                                      ~14     $13, 0
         14        ASSIGN                                                   !3, ~14
   11    15        INIT_FCALL                                               'strpos'
         16        SEND_VAR                                                 !3
         17        SEND_VAL                                                 'close%28%29%3B%22%3E'
         18        DO_ICALL                                         $16     
         19        ASSIGN                                                   !4, $16
   12    20        INIT_FCALL                                               'strpos'
         21        SEND_VAR                                                 !3
         22        SEND_VAL                                                 '+Branch+'
         23        DO_ICALL                                         $18     
         24        ASSIGN                                                   !5, $18
   13    25        INIT_FCALL                                               'strpos'
         26        SEND_VAR                                                 !3
         27        SEND_VAL                                                 'Page'
         28        DO_ICALL                                         $20     
         29        ASSIGN                                                   !6, $20
   18    30        CONCAT                                           ~22     '+HAS+CLOSE%5B', !4
         31        CONCAT                                           ~23     ~22, '%5D%2C++HAS+BRANCH%3A+%5B'
         32        CONCAT                                           ~24     ~23, !5
         33        CONCAT                                           ~25     ~24, '%5D%2C++HAS+PAGE%3A+%5B'
         34        CONCAT                                           ~26     ~25, !6
         35        CONCAT                                           ~27     ~26, '%5D++--%3E+%0A%5B'
         36        CONCAT                                           ~28     ~27, !3
         37        CONCAT                                           ~29     ~28, '%5D'
         38        ECHO                                                     ~29
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.36 ms | 1400 KiB | 17 Q