3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = Array ( 0 => 'timestamp', 1 => '1447931724.712686', 2 => 'bridgeid', 3 => 'bc343ddc-78bf-4e5c-8ba5-cb0a9893a81a' ); function redishash_toarray ($in) { $arr = ''; $c = count($in); for ( $k = 0 ; $k < $c; $k++) { $arr[$in[$k * 2 ]]=$in[$k * 2 + 1]; } } print_r(redishash_toarray ($arr));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SSQsm
function name:  (null)
number of ops:  8
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   21     1        INIT_FCALL                                               'print_r'
          2        INIT_FCALL                                               'redishash_toarray'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $2      
          5        SEND_VAR                                                 $2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Function redishash_toarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 6
Branch analysis from position: 16
Branch analysis from position: 6
filename:       /in/SSQsm
function name:  redishash_toarray
number of ops:  17
compiled vars:  !0 = $in, !1 = $arr, !2 = $c, !3 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        ASSIGN                                                   !1, ''
   13     2        COUNT                                            ~5      !0
          3        ASSIGN                                                   !2, ~5
   14     4        ASSIGN                                                   !3, 0
          5      > JMP                                                      ->14
   16     6    >   MUL                                              ~8      !3, 2
          7        FETCH_DIM_R                                      ~9      !0, ~8
          8        MUL                                              ~11     !3, 2
          9        ADD                                              ~12     ~11, 1
         10        FETCH_DIM_R                                      ~13     !0, ~12
         11        ASSIGN_DIM                                               !1, ~9
         12        OP_DATA                                                  ~13
   14    13        PRE_INC                                                  !3
         14    >   IS_SMALLER                                               !3, !2
         15      > JMPNZ                                                    ~15, ->6
   19    16    > > RETURN                                                   null

End of function redishash_toarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.45 ms | 1403 KiB | 16 Q