3v4l.org

run code in 500+ PHP versions simultaneously
<?php $ai = new ArrayIterator(range(0, 2)); iterator_apply($ai, function() { var_dump(func_get_args()); return true; }, array(1, 2));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Qrnk
function name:  (null)
number of ops:  15
compiled vars:  !0 = $ai
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   NEW                                                  $1      'ArrayIterator'
          1        INIT_FCALL                                                   'range'
          2        SEND_VAL                                                     0
          3        SEND_VAL                                                     2
          4        DO_ICALL                                             $2      
          5        SEND_VAR_NO_REF_EX                                           $2
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !0, $1
    4     8        INIT_FCALL                                                   'iterator_apply'
          9        SEND_VAR                                                     !0
         10        DECLARE_LAMBDA_FUNCTION                              ~5      [0]
    7    11        SEND_VAL                                                     ~5
         12        SEND_VAL                                                     <array>
    4    13        DO_ICALL                                                     
    7    14      > 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/6Qrnk
function name:  {closure:/in/6Qrnk:4}
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                                   'var_dump'
          1        FUNC_GET_ARGS                                        ~0      
          2        SEND_VAL                                                     ~0
          3        DO_ICALL                                                     
    6     4      > RETURN                                                       <true>
    7     5*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.24 ms | 2611 KiB | 16 Q