3v4l.org

run code in 500+ PHP versions simultaneously
<?php $full_url = "domain.com/index.php?option=component&ctrl=product&task=show&cid=5076"; parse_str(parse_url($full_url,PHP_URL_QUERY), $arr); // parse query string print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tEFH5
function name:  (null)
number of ops:  13
compiled vars:  !0 = $full_url, !1 = $arr
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'domain.com%2Findex.php%3Foption%3Dcomponent%26ctrl%3Dproduct%26task%3Dshow%26cid%3D5076'
    5     1        INIT_FCALL                                                   'parse_str'
          2        INIT_FCALL                                                   'parse_url'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     6
          5        DO_ICALL                                             $3      
          6        SEND_VAR                                                     $3
          7        SEND_REF                                                     !1
          8        DO_ICALL                                                     
    6     9        INIT_FCALL                                                   'print_r'
         10        SEND_VAR                                                     !1
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.37 ms | 2304 KiB | 16 Q