3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3,4); echo next($a); echo next($a); echo next($a); echo next($a); echo next($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kKu9X
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'next'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                         $2      
          4        ECHO                                                     $2
    4     5        INIT_FCALL                                               'next'
          6        SEND_REF                                                 !0
          7        DO_ICALL                                         $3      
          8        ECHO                                                     $3
    5     9        INIT_FCALL                                               'next'
         10        SEND_REF                                                 !0
         11        DO_ICALL                                         $4      
         12        ECHO                                                     $4
    6    13        INIT_FCALL                                               'next'
         14        SEND_REF                                                 !0
         15        DO_ICALL                                         $5      
         16        ECHO                                                     $5
    7    17        INIT_FCALL                                               'next'
         18        SEND_REF                                                 !0
         19        DO_ICALL                                         $6      
         20        ECHO                                                     $6
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.67 ms | 1395 KiB | 15 Q