3v4l.org

run code in 300+ 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                                  '%00%7Bclosure%7D%2Fin%2F6Qrnk%3A4%240'
    7    11        SEND_VAL                                                 ~5
         12        SEND_VAL                                                 <array>
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F6Qrnk%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Qrnk
function name:  {closure}
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 function %00%7Bclosure%7D%2Fin%2F6Qrnk%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.89 ms | 1400 KiB | 19 Q