3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('leg1'=>'LA', 'leg2'=>'NY', 'leg3'=>'NY', 'leg4'=>'FL'); while($current = next($a)) { echo key($a) . ":" . $current; $next = next($a); echo key($a) . ":" . $next; $nextnext = next($a); echo key($a) . ":" . $nextnext; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 2
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 2
Branch analysis from position: 33
Branch analysis from position: 2
filename:       /in/Cki2p
function name:  (null)
number of ops:  34
compiled vars:  !0 = $a, !1 = $current, !2 = $next, !3 = $nextnext
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1      > JMP                                                      ->28
    5     2    >   INIT_FCALL                                               'key'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        CONCAT                                           ~6      $5, '%3A'
          6        CONCAT                                           ~7      ~6, !1
          7        ECHO                                                     ~7
    7     8        INIT_FCALL                                               'next'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !2, $8
    8    12        INIT_FCALL                                               'key'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $10     
         15        CONCAT                                           ~11     $10, '%3A'
         16        CONCAT                                           ~12     ~11, !2
         17        ECHO                                                     ~12
   10    18        INIT_FCALL                                               'next'
         19        SEND_REF                                                 !0
         20        DO_ICALL                                         $13     
         21        ASSIGN                                                   !3, $13
   11    22        INIT_FCALL                                               'key'
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $15     
         25        CONCAT                                           ~16     $15, '%3A'
         26        CONCAT                                           ~17     ~16, !3
         27        ECHO                                                     ~17
    4    28    >   INIT_FCALL                                               'next'
         29        SEND_REF                                                 !0
         30        DO_ICALL                                         $18     
         31        ASSIGN                                           ~19     !1, $18
         32      > JMPNZ                                                    ~19, ->2
   12    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.54 ms | 1396 KiB | 17 Q