3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( 0=> 'ParamValue', 2 => 'ParamValue', 3 => 'ParamValue', 4 => 'ParamValue', 5 => 'ParamValue'); $keys =array(); Foreach($arr as $key =>$val){ $keys[] = $val . $key; } $result = array_combine($keys, $arr); Var_dump($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/vTWjs
function name:  (null)
number of ops:  19
compiled vars:  !0 = $arr, !1 = $keys, !2 = $val, !3 = $key, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, <array>
   11     2      > FE_RESET_R                                       $7      !0, ->9
          3    > > FE_FETCH_R                                       ~8      $7, !2, ->9
          4    >   ASSIGN                                                   !3, ~8
   12     5        CONCAT                                           ~11     !2, !3
          6        ASSIGN_DIM                                               !1
          7        OP_DATA                                                  ~11
   11     8      > JMP                                                      ->3
          9    >   FE_FREE                                                  $7
   17    10        INIT_FCALL                                               'array_combine'
         11        SEND_VAR                                                 !1
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $12     
         14        ASSIGN                                                   !4, $12
   19    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !4
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.17 ms | 998 KiB | 15 Q