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/WYuO2
function name:  (null)
number of ops:  24
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        SEND_VAR                                                 $8
    6    13        INIT_FCALL                                               'parse_url'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $9      
         16        SEND_VAR                                                 $9
    7    17        INIT_FCALL                                               'parse_str'
         18        FETCH_DIM_R                                      ~10     !1, 'query'
         19        SEND_VAL                                                 ~10
         20        DO_ICALL                                         $11     
         21        SEND_VAR                                                 $11
         22        DO_ICALL                                                 
    8    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.5 ms | 1386 KiB | 19 Q