3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['src'] = 'http://www.my.com/api.php%3Fkey1=xxx&key2=xxx'; $src = parse_url($_GET['src']); parse_str($src['query']); echo $key1,$key2;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gtqku
function name:  (null)
number of ops:  16
compiled vars:  !0 = $src, !1 = $key1, !2 = $key2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $3      '_GET'
          1        ASSIGN_DIM                                               $3, 'src'
          2        OP_DATA                                                  'http%3A%2F%2Fwww.my.com%2Fapi.php%253Fkey1%3Dxxx%26key2%3Dxxx'
    4     3        INIT_FCALL                                               'parse_url'
          4        FETCH_R                      global              ~5      '_GET'
          5        FETCH_DIM_R                                      ~6      ~5, 'src'
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !0, $7
    5     9        INIT_FCALL                                               'parse_str'
         10        FETCH_DIM_R                                      ~9      !0, 'query'
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                                 
    6    13        ECHO                                                     !1
         14        ECHO                                                     !2
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.29 ms | 1394 KiB | 17 Q