3v4l.org

run code in 300+ PHP versions simultaneously
<?php function go_replace_get($tip,$id1="",$id2="",$id3="",$id4="",$id5="") { global $ayar; $tip = 'aktif_'.$tip.'_redirect'; $url = $ayar[$tip]; $url = preg_replace('@{id1}@si',$id1,$url); $url = preg_replace('@{id2}@si',$id2,$url); $url = preg_replace('@{id3}@si',$id3,$url); $url = preg_replace('@{id4}@si',$id4,$url); $url = preg_replace('@{id5}@si',$id5,$url); return $url; } function go_replace($tip,$id1="",$id2="",$id3="",$id4="",$id5="") { global $ayar; $tip = 'aktif_'.$tip.'_redirect'; $url = $ayar[$tip]; $url = preg_replace('@{id1}@si',$id1,$url); $url = preg_replace('@{id2}@si',$id2,$url); $url = preg_replace('@{id3}@si',$id3,$url); $url = preg_replace('@{id4}@si',$id4,$url); $url = preg_replace('@{id5}@si',$id5,$url); go_redirect($url); } function go_redirect ($url, $time = 0){ if ($time) header("Refresh: {$time}; url={$url}"); else header("Location: {$url}"); } echo go_replace_get("okru",'34135411244',"","");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hfpjd
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   INIT_FCALL                                               'go_replace_get'
          1        SEND_VAL                                                 'okru'
          2        SEND_VAL                                                 '34135411244'
          3        SEND_VAL                                                 ''
          4        SEND_VAL                                                 ''
          5        DO_FCALL                                      0  $0      
          6        ECHO                                                     $0
          7      > RETURN                                                   1

Function go_replace_get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hfpjd
function name:  go_replace_get
number of ops:  44
compiled vars:  !0 = $tip, !1 = $id1, !2 = $id2, !3 = $id3, !4 = $id4, !5 = $id5, !6 = $ayar, !7 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      ''
          2        RECV_INIT                                        !2      ''
          3        RECV_INIT                                        !3      ''
          4        RECV_INIT                                        !4      ''
          5        RECV_INIT                                        !5      ''
    4     6        BIND_GLOBAL                                              !6, 'ayar'
    5     7        CONCAT                                           ~8      'aktif_', !0
          8        CONCAT                                           ~9      ~8, '_redirect'
          9        ASSIGN                                                   !0, ~9
    6    10        FETCH_DIM_R                                      ~11     !6, !0
         11        ASSIGN                                                   !7, ~11
    7    12        INIT_FCALL                                               'preg_replace'
         13        SEND_VAL                                                 '%40%7Bid1%7D%40si'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !7
         16        DO_ICALL                                         $13     
         17        ASSIGN                                                   !7, $13
    8    18        INIT_FCALL                                               'preg_replace'
         19        SEND_VAL                                                 '%40%7Bid2%7D%40si'
         20        SEND_VAR                                                 !2
         21        SEND_VAR                                                 !7
         22        DO_ICALL                                         $15     
         23        ASSIGN                                                   !7, $15
    9    24        INIT_FCALL                                               'preg_replace'
         25        SEND_VAL                                                 '%40%7Bid3%7D%40si'
         26        SEND_VAR                                                 !3
         27        SEND_VAR                                                 !7
         28        DO_ICALL                                         $17     
         29        ASSIGN                                                   !7, $17
   10    30        INIT_FCALL                                               'preg_replace'
         31        SEND_VAL                                                 '%40%7Bid4%7D%40si'
         32        SEND_VAR                                                 !4
         33        SEND_VAR                                                 !7
         34        DO_ICALL                                         $19     
         35        ASSIGN                                                   !7, $19
   11    36        INIT_FCALL                                               'preg_replace'
         37        SEND_VAL                                                 '%40%7Bid5%7D%40si'
         38        SEND_VAR                                                 !5
         39        SEND_VAR                                                 !7
         40        DO_ICALL                                         $21     
         41        ASSIGN                                                   !7, $21
   12    42      > RETURN                                                   !7
   13    43*     > RETURN                                                   null

End of function go_replace_get

Function go_replace:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hfpjd
function name:  go_replace
number of ops:  46
compiled vars:  !0 = $tip, !1 = $id1, !2 = $id2, !3 = $id3, !4 = $id4, !5 = $id5, !6 = $ayar, !7 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      ''
          2        RECV_INIT                                        !2      ''
          3        RECV_INIT                                        !3      ''
          4        RECV_INIT                                        !4      ''
          5        RECV_INIT                                        !5      ''
   16     6        BIND_GLOBAL                                              !6, 'ayar'
   17     7        CONCAT                                           ~8      'aktif_', !0
          8        CONCAT                                           ~9      ~8, '_redirect'
          9        ASSIGN                                                   !0, ~9
   18    10        FETCH_DIM_R                                      ~11     !6, !0
         11        ASSIGN                                                   !7, ~11
   19    12        INIT_FCALL                                               'preg_replace'
         13        SEND_VAL                                                 '%40%7Bid1%7D%40si'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !7
         16        DO_ICALL                                         $13     
         17        ASSIGN                                                   !7, $13
   20    18        INIT_FCALL                                               'preg_replace'
         19        SEND_VAL                                                 '%40%7Bid2%7D%40si'
         20        SEND_VAR                                                 !2
         21        SEND_VAR                                                 !7
         22        DO_ICALL                                         $15     
         23        ASSIGN                                                   !7, $15
   21    24        INIT_FCALL                                               'preg_replace'
         25        SEND_VAL                                                 '%40%7Bid3%7D%40si'
         26        SEND_VAR                                                 !3
         27        SEND_VAR                                                 !7
         28        DO_ICALL                                         $17     
         29        ASSIGN                                                   !7, $17
   22    30        INIT_FCALL                                               'preg_replace'
         31        SEND_VAL                                                 '%40%7Bid4%7D%40si'
         32        SEND_VAR                                                 !4
         33        SEND_VAR                                                 !7
         34        DO_ICALL                                         $19     
         35        ASSIGN                                                   !7, $19
   23    36        INIT_FCALL                                               'preg_replace'
         37        SEND_VAL                                                 '%40%7Bid5%7D%40si'
         38        SEND_VAR                                                 !5
         39        SEND_VAR                                                 !7
         40        DO_ICALL                                         $21     
         41        ASSIGN                                                   !7, $21
   24    42        INIT_FCALL_BY_NAME                                       'go_redirect'
         43        SEND_VAR_EX                                              !7
         44        DO_FCALL                                      0          
   25    45      > RETURN                                                   null

End of function go_replace

Function go_redirect:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hfpjd
function name:  go_redirect
number of ops:  17
compiled vars:  !0 = $url, !1 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      0
   27     2      > JMPZ                                                     !1, ->11
          3    >   INIT_FCALL                                               'header'
          4        ROPE_INIT                                     4  ~3      'Refresh%3A+'
          5        ROPE_ADD                                      1  ~3      ~3, !1
          6        ROPE_ADD                                      2  ~3      ~3, '%3B+url%3D'
          7        ROPE_END                                      3  ~2      ~3, !0
          8        SEND_VAL                                                 ~2
          9        DO_ICALL                                                 
         10      > JMP                                                      ->16
   28    11    >   INIT_FCALL                                               'header'
         12        NOP                                                      
         13        FAST_CONCAT                                      ~6      'Location%3A+', !0
         14        SEND_VAL                                                 ~6
         15        DO_ICALL                                                 
   29    16    > > RETURN                                                   null

End of function go_redirect

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.93 ms | 1407 KiB | 18 Q