3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! // Проверяем если это контекст $referer = ''; $request = ''; if(preg_match('/utm_medium=cpc', $referer) || preg_match('/utm_medium=cpc', $request)) { //$this->source = $this->source_ref['context']; echo 1; } // Проверяем на партнеров if(isset($_GET['pid']) && !empty(trim($_GET['pid'])) && $this->check_pid()) { //$this->source = $this->source_ref['partner']; echo 2; } // Проверяем на поисковики if(preg_match('/search', $referer)) { //$this->source = $this->source_ref['search']; echo 3; } // Проверяем на рассылки if(preg_match('/(id_notification=|unsubscribe=)', $request)) { //$this->source = $this->source_ref['mail']; echo 4; } if(empty($referer) && !isset($_GET['pid']) || preg_match('/sravnikupi.ru/', $referer)) { //$this->source = $this->source_ref['direct']; echo 5; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 25
Branch analysis from position: 17
2 jumps found. (Code = 46) Position 1 = 26, Position 2 = 30
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 32
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 38
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 44
Branch analysis from position: 43
2 jumps found. (Code = 46) Position 1 = 46, Position 2 = 50
Branch analysis from position: 46
2 jumps found. (Code = 47) Position 1 = 51, Position 2 = 56
Branch analysis from position: 51
2 jumps found. (Code = 43) Position 1 = 57, Position 2 = 58
Branch analysis from position: 57
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 58
Branch analysis from position: 56
Branch analysis from position: 50
Branch analysis from position: 44
Branch analysis from position: 38
Branch analysis from position: 32
Branch analysis from position: 30
Branch analysis from position: 25
Branch analysis from position: 14
Branch analysis from position: 12
filename:       /in/NStPe
function name:  (null)
number of ops:  59
compiled vars:  !0 = $referer, !1 = $request
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, ''
    5     1        ASSIGN                                                   !1, ''
    6     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2Futm_medium%3Dcpc'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6      > JMPNZ_EX                                         ~5      $4, ->12
          7    >   INIT_FCALL                                               'preg_match'
          8        SEND_VAL                                                 '%2Futm_medium%3Dcpc'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        BOOL                                             ~5      $6
         12    > > JMPZ                                                     ~5, ->14
    8    13    >   ECHO                                                     1
   11    14    >   FETCH_IS                                         ~7      '_GET'
         15        ISSET_ISEMPTY_DIM_OBJ                         0  ~8      ~7, 'pid'
         16      > JMPZ_EX                                          ~8      ~8, ->25
         17    >   INIT_FCALL                                               'trim'
         18        FETCH_R                      global              ~9      '_GET'
         19        FETCH_DIM_R                                      ~10     ~9, 'pid'
         20        SEND_VAL                                                 ~10
         21        DO_ICALL                                         $11     
         22        BOOL_NOT                                         ~12     $11
         23        BOOL_NOT                                         ~13     ~12
         24        BOOL                                             ~8      ~13
         25    > > JMPZ_EX                                          ~8      ~8, ->30
         26    >   FETCH_THIS                                       $14     
         27        INIT_METHOD_CALL                                         $14, 'check_pid'
         28        DO_FCALL                                      0  $15     
         29        BOOL                                             ~8      $15
         30    > > JMPZ                                                     ~8, ->32
   13    31    >   ECHO                                                     2
   16    32    >   INIT_FCALL                                               'preg_match'
         33        SEND_VAL                                                 '%2Fsearch'
         34        SEND_VAR                                                 !0
         35        DO_ICALL                                         $16     
         36      > JMPZ                                                     $16, ->38
   18    37    >   ECHO                                                     3
   21    38    >   INIT_FCALL                                               'preg_match'
         39        SEND_VAL                                                 '%2F%28id_notification%3D%7Cunsubscribe%3D%29'
         40        SEND_VAR                                                 !1
         41        DO_ICALL                                         $17     
         42      > JMPZ                                                     $17, ->44
   23    43    >   ECHO                                                     4
   25    44    >   ISSET_ISEMPTY_CV                                 ~18     !0
         45      > JMPZ_EX                                          ~18     ~18, ->50
         46    >   FETCH_IS                                         ~19     '_GET'
         47        ISSET_ISEMPTY_DIM_OBJ                         0  ~20     ~19, 'pid'
         48        BOOL_NOT                                         ~21     ~20
         49        BOOL                                             ~18     ~21
         50    > > JMPNZ_EX                                         ~18     ~18, ->56
         51    >   INIT_FCALL                                               'preg_match'
         52        SEND_VAL                                                 '%2Fsravnikupi.ru%2F'
         53        SEND_VAR                                                 !0
         54        DO_ICALL                                         $22     
         55        BOOL                                             ~18     $22
         56    > > JMPZ                                                     ~18, ->58
   27    57    >   ECHO                                                     5
   28    58    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.04 ms | 1400 KiB | 17 Q