3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = false; $master = false; $source = 'some css'; $source = explode('<!-- DEFAULT -->',$source); $return =(count($source)>1)?$source[1]:$source[0]; $ad_loop_regex = "/[\s\S]*\{%[\s]*for[\s]*ad[\s]*in[\s]*ads[\s]*%\}\s/"; $end_loop_regex = '/[\.\s\S]*\{%[\s\S]*endfor[\s\S]*%\}/'; if ($html==true&&preg_match($ad_loop_regex, $return)&&!$master) { $return = preg_replace($ad_loop_regex,'',$return); preg_match($end_loop_regex,$return,$temp_preg_arr); if (count($temp_preg_arr)>0) { $return = $temp_preg_arr[0]; $start_tag = strrpos($return,'{'); $return = substr($return,0,$start_tag); } } echo $return;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 26
Branch analysis from position: 21
2 jumps found. (Code = 46) Position 1 = 27, Position 2 = 29
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 57
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 44, Position 2 = 57
Branch analysis from position: 44
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 57
Branch analysis from position: 57
Branch analysis from position: 29
Branch analysis from position: 26
Branch analysis from position: 14
2 jumps found. (Code = 46) Position 1 = 21, Position 2 = 26
Branch analysis from position: 21
Branch analysis from position: 26
filename:       /in/jPoPE
function name:  (null)
number of ops:  59
compiled vars:  !0 = $html, !1 = $master, !2 = $source, !3 = $return, !4 = $ad_loop_regex, !5 = $end_loop_regex, !6 = $temp_preg_arr, !7 = $start_tag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <false>
    3     1        ASSIGN                                                   !1, <false>
    4     2        ASSIGN                                                   !2, 'some+css'
    5     3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%3C%21--+DEFAULT+--%3E'
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                         $11     
          7        ASSIGN                                                   !2, $11
    6     8        COUNT                                            ~13     !2
          9        IS_SMALLER                                               1, ~13
         10      > JMPZ                                                     ~14, ->14
         11    >   FETCH_DIM_R                                      ~15     !2, 1
         12        QM_ASSIGN                                        ~16     ~15
         13      > JMP                                                      ->16
         14    >   FETCH_DIM_R                                      ~17     !2, 0
         15        QM_ASSIGN                                        ~16     ~17
         16    >   ASSIGN                                                   !3, ~16
    7    17        ASSIGN                                                   !4, '%2F%5B%5Cs%5CS%5D%2A%5C%7B%25%5B%5Cs%5D%2Afor%5B%5Cs%5D%2Aad%5B%5Cs%5D%2Ain%5B%5Cs%5D%2Aads%5B%5Cs%5D%2A%25%5C%7D%5Cs%2F'
    8    18        ASSIGN                                                   !5, '%2F%5B%5C.%5Cs%5CS%5D%2A%5C%7B%25%5B%5Cs%5CS%5D%2Aendfor%5B%5Cs%5CS%5D%2A%25%5C%7D%2F'
    9    19        BOOL                                             ~21     !0
         20      > JMPZ_EX                                          ~21     ~21, ->26
         21    >   INIT_FCALL                                               'preg_match'
         22        SEND_VAR                                                 !4
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                         $22     
         25        BOOL                                             ~21     $22
         26    > > JMPZ_EX                                          ~21     ~21, ->29
         27    >   BOOL_NOT                                         ~23     !1
         28        BOOL                                             ~21     ~23
         29    > > JMPZ                                                     ~21, ->57
   10    30    >   INIT_FCALL                                               'preg_replace'
         31        SEND_VAR                                                 !4
         32        SEND_VAL                                                 ''
         33        SEND_VAR                                                 !3
         34        DO_ICALL                                         $24     
         35        ASSIGN                                                   !3, $24
   11    36        INIT_FCALL                                               'preg_match'
         37        SEND_VAR                                                 !5
         38        SEND_VAR                                                 !3
         39        SEND_REF                                                 !6
         40        DO_ICALL                                                 
   12    41        COUNT                                            ~27     !6
         42        IS_SMALLER                                               0, ~27
         43      > JMPZ                                                     ~28, ->57
   13    44    >   FETCH_DIM_R                                      ~29     !6, 0
         45        ASSIGN                                                   !3, ~29
   14    46        INIT_FCALL                                               'strrpos'
         47        SEND_VAR                                                 !3
         48        SEND_VAL                                                 '%7B'
         49        DO_ICALL                                         $31     
         50        ASSIGN                                                   !7, $31
   15    51        INIT_FCALL                                               'substr'
         52        SEND_VAR                                                 !3
         53        SEND_VAL                                                 0
         54        SEND_VAR                                                 !7
         55        DO_ICALL                                         $33     
         56        ASSIGN                                                   !3, $33
   18    57    >   ECHO                                                     !3
         58      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.8 ms | 1400 KiB | 23 Q