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 ); } var_dump( $output );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/hkK71
function name:  (null)
number of ops:  17
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    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.12 ms | 1394 KiB | 19 Q