3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.88 ms | 1395 KiB | 19 Q