3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3,4); echo next($a); echo current($a)===null; echo next($a); echo current($a)===null; echo next($a); echo current($a)===null; echo next($a); echo current($a)===null;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/miLKD
function name:  (null)
number of ops:  38
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                                               'current'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        TYPE_CHECK                                    2  ~4      $3
          9        ECHO                                                     ~4
    5    10        INIT_FCALL                                               'next'
         11        SEND_REF                                                 !0
         12        DO_ICALL                                         $5      
         13        ECHO                                                     $5
    6    14        INIT_FCALL                                               'current'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $6      
         17        TYPE_CHECK                                    2  ~7      $6
         18        ECHO                                                     ~7
    7    19        INIT_FCALL                                               'next'
         20        SEND_REF                                                 !0
         21        DO_ICALL                                         $8      
         22        ECHO                                                     $8
    8    23        INIT_FCALL                                               'current'
         24        SEND_VAR                                                 !0
         25        DO_ICALL                                         $9      
         26        TYPE_CHECK                                    2  ~10     $9
         27        ECHO                                                     ~10
    9    28        INIT_FCALL                                               'next'
         29        SEND_REF                                                 !0
         30        DO_ICALL                                         $11     
         31        ECHO                                                     $11
   10    32        INIT_FCALL                                               'current'
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                         $12     
         35        TYPE_CHECK                                    2  ~13     $12
         36        ECHO                                                     ~13
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.19 ms | 1396 KiB | 17 Q