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)/2; for ( $k = 0 ; $k < $c; $k++) { $arr[$in[$k * 2 ]]=$in[$k * 2 + 1]; } return $arr; } print_r(redishash_toarray ($arr));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dS8vD
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>
   22     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 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 7
Branch analysis from position: 17
Branch analysis from position: 7
filename:       /in/dS8vD
function name:  redishash_toarray
number of ops:  19
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        DIV                                              ~6      ~5, 2
          4        ASSIGN                                                   !2, ~6
   14     5        ASSIGN                                                   !3, 0
          6      > JMP                                                      ->15
   16     7    >   MUL                                              ~9      !3, 2
          8        FETCH_DIM_R                                      ~10     !0, ~9
          9        MUL                                              ~12     !3, 2
         10        ADD                                              ~13     ~12, 1
         11        FETCH_DIM_R                                      ~14     !0, ~13
         12        ASSIGN_DIM                                               !1, ~10
         13        OP_DATA                                                  ~14
   14    14        PRE_INC                                                  !3
         15    >   IS_SMALLER                                               !3, !2
         16      > JMPNZ                                                    ~16, ->7
   18    17    > > RETURN                                                   !1
   20    18*     > RETURN                                                   null

End of function redishash_toarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.24 ms | 1399 KiB | 16 Q