3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.21 ms | 1400 KiB | 23 Q