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 = isset($parts['scheme']) ? "{$parts['scheme']}://":''; $uri .= isset($parts['host']) ? $parts['host']:''; $uri .= isset($parts['port']) ? ":{$parts['port']}":''; $uri .= isset($parts['path']) ? $parts['path']:''; $uri .= '?'.http_build_query($query); echo $uri;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 29
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 36
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 45
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 46
Branch analysis from position: 46
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 52
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 53
Branch analysis from position: 53
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 45
2 jumps found. (Code = 43) Position 1 = 49, Position 2 = 52
Branch analysis from position: 49
Branch analysis from position: 52
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 40, Position 2 = 45
Branch analysis from position: 40
Branch analysis from position: 45
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 36
Branch analysis from position: 33
Branch analysis from position: 36
filename:       /in/0MKUl
function name:  (null)
number of ops:  61
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        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 'scheme'
         23      > JMPZ                                                     ~16, ->29
         24    >   FETCH_DIM_R                                      ~17     !1, 'scheme'
         25        NOP                                                      
         26        FAST_CONCAT                                      ~18     ~17, '%3A%2F%2F'
         27        QM_ASSIGN                                        ~19     ~18
         28      > JMP                                                      ->30
         29    >   QM_ASSIGN                                        ~19     ''
         30    >   ASSIGN                                                   !3, ~19
   12    31        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 'host'
         32      > JMPZ                                                     ~21, ->36
         33    >   FETCH_DIM_R                                      ~22     !1, 'host'
         34        QM_ASSIGN                                        ~23     ~22
         35      > JMP                                                      ->37
         36    >   QM_ASSIGN                                        ~23     ''
         37    >   ASSIGN_OP                                     8          !3, ~23
   13    38        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 'port'
         39      > JMPZ                                                     ~25, ->45
         40    >   NOP                                                      
         41        FETCH_DIM_R                                      ~26     !1, 'port'
         42        FAST_CONCAT                                      ~27     '%3A', ~26
         43        QM_ASSIGN                                        ~28     ~27
         44      > JMP                                                      ->46
         45    >   QM_ASSIGN                                        ~28     ''
         46    >   ASSIGN_OP                                     8          !3, ~28
   14    47        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 'path'
         48      > JMPZ                                                     ~30, ->52
         49    >   FETCH_DIM_R                                      ~31     !1, 'path'
         50        QM_ASSIGN                                        ~32     ~31
         51      > JMP                                                      ->53
         52    >   QM_ASSIGN                                        ~32     ''
         53    >   ASSIGN_OP                                     8          !3, ~32
   15    54        INIT_FCALL                                               'http_build_query'
         55        SEND_VAR                                                 !2
         56        DO_ICALL                                         $34     
         57        CONCAT                                           ~35     '%3F', $34
         58        ASSIGN_OP                                     8          !3, ~35
   16    59        ECHO                                                     !3
         60      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.45 ms | 1392 KiB | 19 Q