3v4l.org

run code in 300+ 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/8jGqe
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $0      'AppendIterator'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'append'
    3     3        NEW                                              $2      'CallbackFilterIterator'
    4     4        NEW                                              $3      'ArrayIterator'
          5        SEND_VAL_EX                                              <array>
          6        DO_FCALL                                      0          
          7        SEND_VAR_NO_REF_EX                                       $3
    5     8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F8jGqe%3A5%240'
          9        SEND_VAL_EX                                              ~5
         10        DO_FCALL                                      0          
         11        SEND_VAR_NO_REF_EX                                       $2
         12        DO_FCALL                                      0          
    7    13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F8jGqe%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8jGqe
function name:  {closure}
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'Iterated+over'
          1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F8jGqe%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.02 ms | 1393 KiB | 13 Q