3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'http://yoursite.com/?site=http://exapmle.com/&site2=http://google.com/'; $parts = parse_url($str); parse_str($parts['query'], $query); print_r($query);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PDqGe
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $parts, !2 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fyoursite.com%2F%3Fsite%3Dhttp%3A%2F%2Fexapmle.com%2F%26site2%3Dhttp%3A%2F%2Fgoogle.com%2F'
    8     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    9     5        INIT_FCALL                                               'parse_str'
          6        FETCH_DIM_R                                      ~6      !1, 'query'
          7        SEND_VAL                                                 ~6
          8        SEND_REF                                                 !2
          9        DO_ICALL                                                 
   11    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.66 ms | 1398 KiB | 19 Q