3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.88 ms | 1395 KiB | 21 Q