3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('leg1'=>'LA', 'leg2'=>'NY', 'leg3'=>'NY', 'leg4'=>'NY', 'leg5'=>'FL'); $keys = array_keys($array); for ($i = 0; $i < count($keys); $i++) { $cur = $array[$keys[$i]]; $next = $array[$keys[$i+1]]; }
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 = 18, Position 2 = 7
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 7
Branch analysis from position: 18
Branch analysis from position: 7
filename:       /in/ucurh
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $keys, !2 = $array, !3 = $i, !4 = $cur, !5 = $next
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_keys'
          2        SEND_VAR                                                 !2
          3        DO_ICALL                                         $7      
          4        ASSIGN                                                   !1, $7
    5     5        ASSIGN                                                   !3, 0
          6      > JMP                                                      ->15
    6     7    >   FETCH_DIM_R                                      ~10     !1, !3
          8        FETCH_DIM_R                                      ~11     !2, ~10
          9        ASSIGN                                                   !4, ~11
    7    10        ADD                                              ~13     !3, 1
         11        FETCH_DIM_R                                      ~14     !1, ~13
         12        FETCH_DIM_R                                      ~15     !2, ~14
         13        ASSIGN                                                   !5, ~15
    5    14        PRE_INC                                                  !3
         15    >   COUNT                                            ~18     !1
         16        IS_SMALLER                                               !3, ~18
         17      > JMPNZ                                                    ~19, ->7
    8    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.35 ms | 1395 KiB | 15 Q