3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('leg1'=>'LA', 'leg2'=>'NY', 'leg3'=>'NY', 'leg4'=>'FL'); while($current = next($a)) { $next = next($a); $nextnext = next($a); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
Branch analysis from position: 2
filename:       /in/rsMaT
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $next, !2 = $nextnext, !3 = $current
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1      > JMP                                                      ->10
    5     2    >   INIT_FCALL                                               'next'
          3        SEND_REF                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    6     6        INIT_FCALL                                               'next'
          7        SEND_REF                                                 !0
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    4    10    >   INIT_FCALL                                               'next'
         11        SEND_REF                                                 !0
         12        DO_ICALL                                         $9      
         13        ASSIGN                                           ~10     !3, $9
         14      > JMPNZ                                                    ~10, ->2
    7    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.62 ms | 1395 KiB | 15 Q