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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.37 ms | 1392 KiB | 19 Q