3v4l.org

run code in 300+ PHP versions simultaneously
<?php $src = 'http://www.my.com/api.php?url='.escape("http://www.my.com/api.php?key1=xxx&key2=xxx"); $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/suaOc
function name:  (null)
number of ops:  18
compiled vars:  !0 = $src, !1 = $url
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'escape'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fwww.my.com%2Fapi.php%3Fkey1%3Dxxx%26key2%3Dxxx'
          2        DO_FCALL                                      0  $2      
          3        CONCAT                                           ~3      'http%3A%2F%2Fwww.my.com%2Fapi.php%3Furl%3D', $2
          4        ASSIGN                                                   !0, ~3
    4     5        INIT_FCALL                                               'parse_url'
          6        INIT_FCALL                                               'urldecode'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !0, $6
    5    12        INIT_FCALL                                               'parse_str'
         13        FETCH_DIM_R                                      ~8      !0, 'query'
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                                 
    6    16        ECHO                                                     !1
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.16 ms | 1394 KiB | 19 Q