3v4l.org

run code in 300+ PHP versions simultaneously
<?php $redirect = '/est/weox/customer/login?return=%2Fest%2Fadmin%2Fcart'; $result = parse_url( $redirect ); $output = array(); if ( isset( $result['query'] ) ) { parse_str( $result['query'], $output ); } if ( ! empty( $output ) && isset( $output['return'] ) ) { var_dump( $output['return'] ); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 23
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 18
Branch analysis from position: 13
filename:       /in/rHTpE
function name:  (null)
number of ops:  24
compiled vars:  !0 = $redirect, !1 = $result, !2 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%2Fest%2Fweox%2Fcustomer%2Flogin%3Freturn%3D%252Fest%252Fadmin%252Fcart'
    3     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        ASSIGN                                                   !2, <array>
    7     6        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 'query'
          7      > JMPZ                                                     ~7, ->13
    9     8    >   INIT_FCALL                                               'parse_str'
          9        FETCH_DIM_R                                      ~8      !1, 'query'
         10        SEND_VAL                                                 ~8
         11        SEND_REF                                                 !2
         12        DO_ICALL                                                 
   12    13    >   ISSET_ISEMPTY_CV                                 ~10     !2
         14        BOOL_NOT                                         ~11     ~10
         15      > JMPZ_EX                                          ~11     ~11, ->18
         16    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~12     !2, 'return'
         17        BOOL                                             ~11     ~12
         18    > > JMPZ                                                     ~11, ->23
   14    19    >   INIT_FCALL                                               'var_dump'
         20        FETCH_DIM_R                                      ~13     !2, 'return'
         21        SEND_VAL                                                 ~13
         22        DO_ICALL                                                 
   15    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.93 ms | 1395 KiB | 19 Q