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($params)[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 = 12, Position 2 = 25
Branch analysis from position: 12
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 22
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 22
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 40
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 39
Branch analysis from position: 38
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
Branch analysis from position: 40
Branch analysis from position: 22
Branch analysis from position: 25
filename:       /in/uPsJE
function name:  (null)
number of ops:  47
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        INIT_FCALL                                               'array_keys'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $10     
          9        FETCH_DIM_R                                      ~11     $10, 0
         10        IS_NOT_IDENTICAL                                         ~11, 0
         11      > JMPZ                                                     ~12, ->25
   21    12    >   ASSIGN                                                   !3, <array>
   22    13      > FE_RESET_R                                       $14     !1, ->22
         14    > > FE_FETCH_R                                       ~15     $14, !4, ->22
         15    >   ASSIGN                                                   !5, ~15
   23    16        ROPE_INIT                                     3  ~19     !5
         17        ROPE_ADD                                      1  ~19     ~19, '%3D'
         18        ROPE_END                                      2  ~18     ~19, !4
         19        ASSIGN_DIM                                               !3
         20        OP_DATA                                                  ~18
   22    21      > JMP                                                      ->14
         22    >   FE_FREE                                                  $14
   25    23        ASSIGN                                                   !1, !3
   26    24        UNSET_CV                                                 !3
   28    25    >   UNSET_CV                                                 !2
   30    26        INIT_FCALL                                               'substr'
         27        SEND_VAR                                                 !0
         28        SEND_VAL                                                 -1
         29        DO_ICALL                                         $22     
         30        IS_NOT_IDENTICAL                                         $22, '%3F'
         31      > JMPZ                                                     ~23, ->40
   31    32    >   INIT_FCALL                                               'substr'
         33        SEND_VAR                                                 !0
         34        SEND_VAL                                                 -1
         35        DO_ICALL                                         $24     
         36        IS_NOT_IDENTICAL                                         $24, '%2F'
         37      > JMPZ                                                     ~25, ->39
   32    38    >   ASSIGN_OP                                     8          !0, '%2F'
   34    39    >   ASSIGN_OP                                     8          !0, '%3F'
   38    40    >   INIT_FCALL                                               'implode'
         41        SEND_VAL                                                 '%26'
         42        SEND_VAR                                                 !1
         43        DO_ICALL                                         $28     
         44        ASSIGN_OP                                     8  ~29     !0, $28
         45        ECHO                                                     ~29
         46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.1 ms | 1400 KiB | 19 Q