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); var_dump(parse_str($parsed_url["query"])); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WERIo
function name:  (null)
number of ops:  13
compiled vars:  !0 = $url, !1 = $parsed_url
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                                         $3      
          4        ASSIGN                                                   !1, $3
    5     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'parse_str'
          7        FETCH_DIM_R                                      ~5      !1, 'query'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        DO_ICALL                                                 
    6    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.98 ms | 1394 KiB | 19 Q