3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo getTargetUrl("https://api.32r.com/jump.php?target=https://www.wanmei.com/safestatic/privacy.html"); function getTargetUrl($str){ $parts = explode('?target=', $str); if (!empty($parts['1'])){ return $parts['1']; } return $str; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oBhEJ
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'getTargetUrl'
          1        SEND_VAL_EX                                              'https%3A%2F%2Fapi.32r.com%2Fjump.php%3Ftarget%3Dhttps%3A%2F%2Fwww.wanmei.com%2Fsafestatic%2Fprivacy.html'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   10     4      > RETURN                                                   1

Function gettargeturl:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oBhEJ
function name:  getTargetUrl
number of ops:  13
compiled vars:  !0 = $str, !1 = $parts
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%3Ftarget%3D'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !1, $2
    6     6        ISSET_ISEMPTY_DIM_OBJ                         1  ~4      !1, 1
          7        BOOL_NOT                                         ~5      ~4
          8      > JMPZ                                                     ~5, ->11
    7     9    >   FETCH_DIM_R                                      ~6      !1, 1
         10      > RETURN                                                   ~6
    9    11    > > RETURN                                                   !0
   10    12*     > RETURN                                                   null

End of function gettargeturl

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.77 ms | 999 KiB | 14 Q