3v4l.org

run code in 300+ PHP versions simultaneously
<?php $src = 'http://www.my.com/api.php?url='.'http%253A%252F%252Fwww.my.com%252Fapi.php%253Fkey1%253Dxxx%2526key2%253Dxxx'; $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/WDd4E
function name:  (null)
number of ops:  14
compiled vars:  !0 = $src, !1 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.my.com%2Fapi.php%3Furl%3Dhttp%25253A%25252F%25252Fwww.my.com%25252Fapi.php%25253Fkey1%25253Dxxx%252526key2%25253Dxxx'
    4     1        INIT_FCALL                                               'parse_url'
          2        INIT_FCALL                                               'urldecode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        SEND_VAR                                                 $3
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
    5     8        INIT_FCALL                                               'parse_str'
          9        FETCH_DIM_R                                      ~6      !0, 'query'
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
    6    12        ECHO                                                     !1
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.81 ms | 1385 KiB | 19 Q