3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.1 ms | 1400 KiB | 15 Q