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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.84 ms | 1395 KiB | 19 Q