3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'component/content/article?id=9'; $query = parse_url($str, PHP_URL_QUERY); // Get the string part after the "?" parse_str($query, $params); print $_GET['id'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Rkpns
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $query, !2 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'component%2Fcontent%2Farticle%3Fid%3D9'
    3     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 6
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    4     6        INIT_FCALL                                               'parse_str'
          7        SEND_VAR                                                 !1
          8        SEND_REF                                                 !2
          9        DO_ICALL                                                 
    5    10        FETCH_R                      global              ~7      '_GET'
         11        FETCH_DIM_R                                      ~8      ~7, 'id'
         12        ECHO                                                     ~8
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.88 ms | 1394 KiB | 17 Q