3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.example.com/?affid=12345'; $query = parse_url($url, PHP_URL_QUERY); $affid = $query['affid']; echo $affid; // outputs 12345
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nQDvj
function name:  (null)
number of ops:  10
compiled vars:  !0 = $url, !1 = $query, !2 = $affid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.example.com%2F%3Faffid%3D12345'
    5     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 6
          4        DO_ICALL                                         $4      
          5        ASSIGN                                                   !1, $4
    6     6        FETCH_DIM_R                                      ~6      !1, 'affid'
          7        ASSIGN                                                   !2, ~6
    8     8        ECHO                                                     !2
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.5 ms | 1385 KiB | 15 Q