3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $foo = 'foo'; } class Set extends ArrayIterator { public $bar = 'bar'; } $array = [ new Foo(), ]; $set = new Set($array); var_dump(current($set));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BF8hY
function name:  (null)
number of ops:  15
compiled vars:  !0 = $array, !1 = $set
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~4      $2
   12     3        ASSIGN                                                   !0, ~4
   16     4        NEW                                              $6      'Set'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
   18     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'current'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $9      
         12        SEND_VAR                                                 $9
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Class Foo: [no user functions]
Class Set: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.38 ms | 1436 KiB | 15 Q