3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 'leg1'=>'1', 'leg2'=>'2', 'leg3'=>'3', 'leg4'=>'4', 'leg5'=>'5'); while($current = current($a)) { echo $current . "... "; $next = next($a); $nextnext = next($a); echo "<br>".$next; echo "<br>".$nextnext; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
Branch analysis from position: 2
filename:       /in/3fHAq
function name:  (null)
number of ops:  22
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>
    9     1      > JMP                                                      ->16
   10     2    >   CONCAT                                           ~5      !1, '...+'
          3        ECHO                                                     ~5
   12     4        INIT_FCALL                                               'next'
          5        SEND_REF                                                 !0
          6        DO_ICALL                                         $6      
          7        ASSIGN                                                   !2, $6
   13     8        INIT_FCALL                                               'next'
          9        SEND_REF                                                 !0
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !3, $8
   14    12        CONCAT                                           ~10     '%3Cbr%3E', !2
         13        ECHO                                                     ~10
   15    14        CONCAT                                           ~11     '%3Cbr%3E', !3
         15        ECHO                                                     ~11
    9    16    >   INIT_FCALL                                               'current'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $12     
         19        ASSIGN                                           ~13     !1, $12
         20      > JMPNZ                                                    ~13, ->2
   18    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.89 ms | 1400 KiB | 17 Q