3v4l.org

run code in 300+ PHP versions simultaneously
<?php $credentials = array('user','pass'); $parts = parse_url('http://reportingpro.asherlogistics.com/flow.html?_flowId=searchFlow'); $query = array(); parse_str($parts['query'],$query); $query['j_username'] = $credentials[0]; $query['j_password'] = $credentials[1]; $parts['query'] = http_build_query($query); $uri = $parts['scheme'].'://'.$parts['host'].$parts['path'].'?'.http_build_query($query); echo $uri;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k2B6j
function name:  (null)
number of ops:  36
compiled vars:  !0 = $credentials, !1 = $parts, !2 = $query, !3 = $uri
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'parse_url'
          2        SEND_VAL                                                 'http%3A%2F%2Freportingpro.asherlogistics.com%2Fflow.html%3F_flowId%3DsearchFlow'
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    6     5        ASSIGN                                                   !2, <array>
    7     6        INIT_FCALL                                               'parse_str'
          7        FETCH_DIM_R                                      ~8      !1, 'query'
          8        SEND_VAL                                                 ~8
          9        SEND_REF                                                 !2
         10        DO_ICALL                                                 
    8    11        FETCH_DIM_R                                      ~11     !0, 0
         12        ASSIGN_DIM                                               !2, 'j_username'
         13        OP_DATA                                                  ~11
    9    14        FETCH_DIM_R                                      ~13     !0, 1
         15        ASSIGN_DIM                                               !2, 'j_password'
         16        OP_DATA                                                  ~13
   10    17        INIT_FCALL                                               'http_build_query'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                         $15     
         20        ASSIGN_DIM                                               !1, 'query'
         21        OP_DATA                                                  $15
   11    22        FETCH_DIM_R                                      ~16     !1, 'scheme'
         23        CONCAT                                           ~17     ~16, '%3A%2F%2F'
         24        FETCH_DIM_R                                      ~18     !1, 'host'
         25        CONCAT                                           ~19     ~17, ~18
         26        FETCH_DIM_R                                      ~20     !1, 'path'
         27        CONCAT                                           ~21     ~19, ~20
         28        CONCAT                                           ~22     ~21, '%3F'
         29        INIT_FCALL                                               'http_build_query'
         30        SEND_VAR                                                 !2
         31        DO_ICALL                                         $23     
         32        CONCAT                                           ~24     ~22, $23
         33        ASSIGN                                                   !3, ~24
   12    34        ECHO                                                     !3
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.79 ms | 1396 KiB | 19 Q