3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'https://medium.com/on-coding/5963ca9d6499'; $params = array( '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 &$params) { $tmp[] = implode('=', $params); } $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 = 125) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
2 jumps found. (Code = 126) 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/BiTur
function name:  (null)
number of ops:  44
compiled vars:  !0 = $url, !1 = $params, !2 = $array_keys, !3 = $tmp
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                                         $6      
          5        ASSIGN                                                   !2, $6
   20     6        FETCH_DIM_R                                      ~8      !2, 0
          7        IS_NOT_IDENTICAL                                         ~8, 0
          8      > JMPZ                                                     ~9, ->22
   21     9    >   ASSIGN                                                   !3, <array>
   22    10      > FE_RESET_RW                                      $11     !1, ->19
         11    > > FE_FETCH_RW                                              $11, !1, ->19
   23    12    >   INIT_FCALL                                               'implode'
         13        SEND_VAL                                                 '%3D'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $13     
         16        ASSIGN_DIM                                               !3
         17        OP_DATA                                                  $13
   22    18      > JMP                                                      ->11
         19    >   FE_FREE                                                  $11
   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                                         $15     
         27        IS_NOT_IDENTICAL                                         $15, '%3F'
         28      > JMPZ                                                     ~16, ->37
   31    29    >   INIT_FCALL                                               'substr'
         30        SEND_VAR                                                 !0
         31        SEND_VAL                                                 -1
         32        DO_ICALL                                         $17     
         33        IS_NOT_IDENTICAL                                         $17, '%2F'
         34      > JMPZ                                                     ~18, ->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                                         $21     
         41        ASSIGN_OP                                     8  ~22     !0, $21
         42        ECHO                                                     ~22
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.78 ms | 1400 KiB | 19 Q