3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://localhost/satdb/src/?v=organisations&q=foo&s=p&o=a&p=2?g=a"; //var_dump(explode("?", $url)); $parsed_url = parse_url($url); $query = array(); parse_str($parsed_url["query"], $query); var_dump($query); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iJeIV
function name:  (null)
number of ops:  15
compiled vars:  !0 = $url, !1 = $parsed_url, !2 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Flocalhost%2Fsatdb%2Fsrc%2F%3Fv%3Dorganisations%26q%3Dfoo%26s%3Dp%26o%3Da%26p%3D2%3Fg%3Da'
    4     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    5     5        ASSIGN                                                   !2, <array>
    6     6        INIT_FCALL                                               'parse_str'
          7        FETCH_DIM_R                                      ~7      !1, 'query'
          8        SEND_VAL                                                 ~7
          9        SEND_REF                                                 !2
         10        DO_ICALL                                                 
    7    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
    8    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.13 ms | 1394 KiB | 19 Q