3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = 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/qWMe8
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array, !1 = $keys, !2 = $i, !3 = $cur, !4 = $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                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
    5     5        ASSIGN                                                   !2, 0
          6      > JMP                                                      ->15
    6     7    >   FETCH_DIM_R                                      ~9      !1, !2
          8        FETCH_DIM_R                                      ~10     !0, ~9
          9        ASSIGN                                                   !3, ~10
    7    10        ADD                                              ~12     !2, 1
         11        FETCH_DIM_R                                      ~13     !1, ~12
         12        FETCH_DIM_R                                      ~14     !0, ~13
         13        ASSIGN                                                   !4, ~14
    5    14        PRE_INC                                                  !2
         15    >   COUNT                                            ~17     !1
         16        IS_SMALLER                                               !2, ~17
         17      > JMPNZ                                                    ~18, ->7
    8    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.92 ms | 1395 KiB | 15 Q