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; } echo go_replace_get("okru",'34135411244',"","");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dETOD
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     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/dETOD
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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.29 ms | 1403 KiB | 16 Q