3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iterator = new EmptyIterator(); var_dump(array( 'count' => count($iterator), 'empty' => empty($iterator), 'is countable' => $iterator instanceof Countable, ));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vIfLn
function name:  (null)
number of ops:  13
compiled vars:  !0 = $iterator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'EmptyIterator'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        INIT_FCALL                                               'var_dump'
    5     4        COUNT                                            ~4      !0
          5        INIT_ARRAY                                       ~5      ~4, 'count'
    6     6        ISSET_ISEMPTY_CV                                 ~6      !0
          7        ADD_ARRAY_ELEMENT                                ~5      ~6, 'empty'
    7     8        INSTANCEOF                                       ~7      !0, 'Countable'
          9        ADD_ARRAY_ELEMENT                                ~5      ~7, 'is+countable'
         10        SEND_VAL                                                 ~5
         11        DO_ICALL                                                 
    8    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.06 ms | 1385 KiB | 15 Q