3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(PHP_INT_MAX ); $iterator = new ArrayIterator([1, 2]); $array = iterator_to_array($iterator); array_walk($array, function($item) {echo $item . PHP_EOL;});
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xq9Dc
function name:  (null)
number of ops:  17
compiled vars:  !0 = $iterator, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 9223372036854775807
          2        DO_ICALL                                                 
    3     3        NEW                                              $3      'ArrayIterator'
          4        SEND_VAL_EX                                              <array>
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
    4     7        INIT_FCALL                                               'iterator_to_array'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    5    11        INIT_FCALL                                               'array_walk'
         12        SEND_REF                                                 !1
         13        DECLARE_LAMBDA_FUNCTION                          ~8      [0]
         14        SEND_VAL                                                 ~8
         15        DO_ICALL                                                 
         16      > 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/Xq9Dc
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV                                             !0      
          1        CONCAT                                           ~1      !0, '%0A'
          2        ECHO                                                     ~1
          3      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.76 ms | 1000 KiB | 16 Q