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 $next."<>"; echo $nextnext; }
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 = 20, Position 2 = 2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 2
Branch analysis from position: 20
Branch analysis from position: 2
filename:       /in/6RIQZ
function name:  (null)
number of ops:  21
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                                                      ->15
   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     !2, '%3C%3E'
         13        ECHO                                                     ~10
   15    14        ECHO                                                     !3
    9    15    >   INIT_FCALL                                               'current'
         16        SEND_VAR                                                 !0
         17        DO_ICALL                                         $11     
         18        ASSIGN                                           ~12     !1, $11
         19      > JMPNZ                                                    ~12, ->2
   18    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.45 ms | 1399 KiB | 17 Q