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->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 = 43) Position 1 = 26, Position 2 = 27
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 33
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 39
Branch analysis from position: 38
2 jumps found. (Code = 46) Position 1 = 41, Position 2 = 45
Branch analysis from position: 41
2 jumps found. (Code = 47) Position 1 = 46, Position 2 = 51
Branch analysis from position: 46
2 jumps found. (Code = 43) Position 1 = 52, Position 2 = 53
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 53
Branch analysis from position: 51
Branch analysis from position: 45
Branch analysis from position: 39
Branch analysis from position: 33
Branch analysis from position: 27
Branch analysis from position: 25
Branch analysis from position: 14
Branch analysis from position: 12
filename:       /in/AKkBV
function name:  (null)
number of ops:  54
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                                                     ~8, ->27
   13    26    >   ECHO                                                     2
   16    27    >   INIT_FCALL                                               'preg_match'
         28        SEND_VAL                                                 '%2Fsearch'
         29        SEND_VAR                                                 !0
         30        DO_ICALL                                         $14     
         31      > JMPZ                                                     $14, ->33
   18    32    >   ECHO                                                     3
   21    33    >   INIT_FCALL                                               'preg_match'
         34        SEND_VAL                                                 '%2F%28id_notification%3D%7Cunsubscribe%3D%29'
         35        SEND_VAR                                                 !1
         36        DO_ICALL                                         $15     
         37      > JMPZ                                                     $15, ->39
   23    38    >   ECHO                                                     4
   25    39    >   ISSET_ISEMPTY_CV                                 ~16     !0
         40      > JMPZ_EX                                          ~16     ~16, ->45
         41    >   FETCH_IS                                         ~17     '_GET'
         42        ISSET_ISEMPTY_DIM_OBJ                         0  ~18     ~17, 'pid'
         43        BOOL_NOT                                         ~19     ~18
         44        BOOL                                             ~16     ~19
         45    > > JMPNZ_EX                                         ~16     ~16, ->51
         46    >   INIT_FCALL                                               'preg_match'
         47        SEND_VAL                                                 '%2Fsravnikupi.ru%2F'
         48        SEND_VAR                                                 !0
         49        DO_ICALL                                         $20     
         50        BOOL                                             ~16     $20
         51    > > JMPZ                                                     ~16, ->53
   27    52    >   ECHO                                                     5
   28    53    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.98 ms | 1400 KiB | 17 Q