3v4l.org

run code in 300+ PHP versions simultaneously
<?php $credentials = array('user','pass'); $parts = parse_url('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['scheme'])?'://':'').$parts['host'].$parts['path'].'?'.http_build_query($query); echo $uri;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OuoGq
function name:  (null)
number of ops:  41
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                                                 'reportingpro.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        FETCH_DIM_R                                      ~17     !1, 'scheme'
         24      > JMPZ                                                     ~17, ->27
         25    >   QM_ASSIGN                                        ~18     '%3A%2F%2F'
         26      > JMP                                                      ->28
         27    >   QM_ASSIGN                                        ~18     ''
         28    >   CONCAT                                           ~19     ~16, ~18
         29        FETCH_DIM_R                                      ~20     !1, 'host'
         30        CONCAT                                           ~21     ~19, ~20
         31        FETCH_DIM_R                                      ~22     !1, 'path'
         32        CONCAT                                           ~23     ~21, ~22
         33        CONCAT                                           ~24     ~23, '%3F'
         34        INIT_FCALL                                               'http_build_query'
         35        SEND_VAR                                                 !2
         36        DO_ICALL                                         $25     
         37        CONCAT                                           ~26     ~24, $25
         38        ASSIGN                                                   !3, ~26
   12    39        ECHO                                                     !3
         40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.3 ms | 1405 KiB | 19 Q