3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = [1,2,3]; $reduced = array_reduce($arr, function (&$result, $items) { }, []);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CUCvi
function name:  (null)
number of ops:  9
compiled vars:  !0 = $arr, !1 = $reduced
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        INIT_FCALL                                                   'array_reduce'
          2        SEND_VAR                                                     !0
          3        DECLARE_LAMBDA_FUNCTION                              ~3      [0]
          4        SEND_VAL                                                     ~3
          5        SEND_VAL                                                     <array>
          6        DO_ICALL                                             $4      
          7        ASSIGN                                                       !1, $4
          8      > 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/CUCvi
function name:  {closure:/in/CUCvi:4}
number of ops:  3
compiled vars:  !0 = $result, !1 = $items
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
          0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.55 ms | 2189 KiB | 14 Q