3v4l.org

run code in 500+ PHP versions simultaneously
<?php (new \AppendIterator())->append( new \CallbackFilterIterator( new \ArrayIterator([1]), static function(){ echo "Iterated over"; } ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dc9eq
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $0      'AppendIterator'
          1        DO_FCALL                                          0          
          2        INIT_METHOD_CALL                                             $0, 'append'
    4     3        NEW                                                  $2      'CallbackFilterIterator'
    5     4        NEW                                                  $3      'ArrayIterator'
          5        SEND_VAL_EX                                                  <array>
          6        DO_FCALL                                          0          
          7        SEND_VAR_NO_REF_EX                                           $3
    6     8        DECLARE_LAMBDA_FUNCTION                              ~5      [0]
          9        SEND_VAL_EX                                                  ~5
    4    10        DO_FCALL                                          0          
    6    11        SEND_VAR_NO_REF_EX                                           $2
    3    12        DO_FCALL                                          0          
    8    13      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dc9eq
function name:  {closure:/in/dc9eq:6}
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                         'Iterated+over'
          1      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
219.2 ms | 3320 KiB | 13 Q