3v4l.org

run code in 300+ PHP versions simultaneously
<?php function reduce($a, $b) { return $b+$a; } $array = array(1,2,3,4,5,6,7,8,9,0); array_reduce($array, array(null, 'reduce'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hLA1E
function name:  (null)
number of ops:  6
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'array_reduce'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 <array>
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Function reduce:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hLA1E
function name:  reduce
number of ops:  5
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ADD                                              ~2      !1, !0
          3      > RETURN                                                   ~2
    5     4*     > RETURN                                                   null

End of function reduce

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.85 ms | 1394 KiB | 15 Q