3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_SERVER['REQUEST_URI']="http://localhost/neukundenbonus/?PartnerId=403&utm_source=bertelsmann&utm_medium=iframe&utm_campaign=Bertelsmann%20Club"; $url = preg_replace('/neukundenbonus/', 'https://www.lottowelt.de/lotto/online/de/lw/lotto-online-tippen.html', $_SERVER['REQUEST_URI']); $result = substr($url,1); echo $url; echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/inQDC
function name:  (null)
number of ops:  19
compiled vars:  !0 = $url, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_W                      global              $2      '_SERVER'
          1        ASSIGN_DIM                                               $2, 'REQUEST_URI'
          2        OP_DATA                                                  'http%3A%2F%2Flocalhost%2Fneukundenbonus%2F%3FPartnerId%3D403%26utm_source%3Dbertelsmann%26utm_medium%3Diframe%26utm_campaign%3DBertelsmann%2520Club'
    6     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAL                                                 '%2Fneukundenbonus%2F'
          5        SEND_VAL                                                 'https%3A%2F%2Fwww.lottowelt.de%2Flotto%2Fonline%2Fde%2Flw%2Flotto-online-tippen.html'
          6        FETCH_R                      global              ~4      '_SERVER'
          7        FETCH_DIM_R                                      ~5      ~4, 'REQUEST_URI'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !0, $6
    7    11        INIT_FCALL                                               'substr'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 1
         14        DO_ICALL                                         $8      
         15        ASSIGN                                                   !1, $8
    9    16        ECHO                                                     !0
   10    17        ECHO                                                     !1
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.69 ms | 1395 KiB | 17 Q