3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://medium.com/on-coding/5963ca9d6499'; $params = [ 'type' => '11', 'PPSX' => 'Pass', 'NewUser' => '1', 'LoginOptions' => '1', 'i3' => '71126', 'm1' => '1366', 'm2' => '768', 'm3' => '0', 'i12' => '1', 'i17' => '0', 'i18' => '__Login_Host|1,', ]; $array_keys = array_keys($params); if ($array_keys[0] !== 0) { $tmp = []; foreach ($params as $key => $value) { $tmp[] = "{$key}={$value}"; } $params = $tmp; unset($tmp); } unset($array_keys); if (substr($url, -1) !== '?') { if (substr($url, -1) !== '/') { $url .= '/'; } $url .= '?'; } print $url .= implode('&', $params);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 22
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 37
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 36
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
Branch analysis from position: 37
Branch analysis from position: 19
Branch analysis from position: 22
filename:       /in/rJStu
function name:  (null)
number of ops:  44
compiled vars:  !0 = $url, !1 = $params, !2 = $array_keys, !3 = $tmp, !4 = $value, !5 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fmedium.com%2Fon-coding%2F5963ca9d6499'
    5     1        ASSIGN                                                   !1, <array>
   19     2        INIT_FCALL                                               'array_keys'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $8      
          5        ASSIGN                                                   !2, $8
   20     6        FETCH_DIM_R                                      ~10     !2, 0
          7        IS_NOT_IDENTICAL                                         ~10, 0
          8      > JMPZ                                                     ~11, ->22
   21     9    >   ASSIGN                                                   !3, <array>
   22    10      > FE_RESET_R                                       $13     !1, ->19
         11    > > FE_FETCH_R                                       ~14     $13, !4, ->19
         12    >   ASSIGN                                                   !5, ~14
   23    13        ROPE_INIT                                     3  ~18     !5
         14        ROPE_ADD                                      1  ~18     ~18, '%3D'
         15        ROPE_END                                      2  ~17     ~18, !4
         16        ASSIGN_DIM                                               !3
         17        OP_DATA                                                  ~17
   22    18      > JMP                                                      ->11
         19    >   FE_FREE                                                  $13
   25    20        ASSIGN                                                   !1, !3
   26    21        UNSET_CV                                                 !3
   28    22    >   UNSET_CV                                                 !2
   30    23        INIT_FCALL                                               'substr'
         24        SEND_VAR                                                 !0
         25        SEND_VAL                                                 -1
         26        DO_ICALL                                         $21     
         27        IS_NOT_IDENTICAL                                         $21, '%3F'
         28      > JMPZ                                                     ~22, ->37
   31    29    >   INIT_FCALL                                               'substr'
         30        SEND_VAR                                                 !0
         31        SEND_VAL                                                 -1
         32        DO_ICALL                                         $23     
         33        IS_NOT_IDENTICAL                                         $23, '%2F'
         34      > JMPZ                                                     ~24, ->36
   32    35    >   ASSIGN_OP                                     8          !0, '%2F'
   34    36    >   ASSIGN_OP                                     8          !0, '%3F'
   38    37    >   INIT_FCALL                                               'implode'
         38        SEND_VAL                                                 '%26'
         39        SEND_VAR                                                 !1
         40        DO_ICALL                                         $27     
         41        ASSIGN_OP                                     8  ~28     !0, $27
         42        ECHO                                                     ~28
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.08 ms | 1400 KiB | 19 Q