3v4l.org

run code in 300+ PHP versions simultaneously
<?php $requestedUri = $_SERVER['REQUEST_URI'] = 'http://www.testing.com/login'; $requestedUriWithQuery = $_SERVER['REQUEST_URI'] = 'http://www.testing.com/login?name=name&password=password'; print_r([ parse_url($requestedUri), parse_url($requestedUriWithQuery), parse_str($requestedUriWithQuery['query']) ]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2pPr4
function name:  (null)
number of ops:  25
compiled vars:  !0 = $requestedUri, !1 = $requestedUriWithQuery
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $2      '_SERVER'
          1        ASSIGN_DIM                                       ~3      $2, 'REQUEST_URI'
          2        OP_DATA                                                  'http%3A%2F%2Fwww.testing.com%2Flogin'
          3        ASSIGN                                                   !0, ~3
    3     4        FETCH_W                      global              $5      '_SERVER'
          5        ASSIGN_DIM                                       ~6      $5, 'REQUEST_URI'
          6        OP_DATA                                                  'http%3A%2F%2Fwww.testing.com%2Flogin%3Fname%3Dname%26password%3Dpassword'
          7        ASSIGN                                                   !1, ~6
    4     8        INIT_FCALL                                               'print_r'
    5     9        INIT_FCALL                                               'parse_url'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $8      
         12        INIT_ARRAY                                       ~9      $8
    6    13        INIT_FCALL                                               'parse_url'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $10     
         16        ADD_ARRAY_ELEMENT                                ~9      $10
    7    17        INIT_FCALL                                               'parse_str'
         18        FETCH_DIM_R                                      ~11     !1, 'query'
         19        SEND_VAL                                                 ~11
         20        DO_ICALL                                         $12     
         21        ADD_ARRAY_ELEMENT                                ~9      $12
         22        SEND_VAL                                                 ~9
         23        DO_ICALL                                                 
    8    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.47 ms | 1395 KiB | 19 Q