3v4l.org

run code in 300+ PHP versions simultaneously
<?php array_reduce([1, 2, 3, 4], function ($carry, $value) { if ($value === 3) { var_dump($carry); return $value; } var_dump($carry); });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J85sQ
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'array_reduce'
          1        SEND_VAL                                                 <array>
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FJ85sQ%3A3%240'
   10     3        SEND_VAL                                                 ~0
          4        DO_ICALL                                                 
          5      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FJ85sQ%3A3%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J85sQ
function name:  {closure}
number of ops:  12
compiled vars:  !0 = $carry, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        IS_IDENTICAL                                             !1, 3
          3      > JMPZ                                                     ~2, ->8
    5     4    >   INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    7     7      > RETURN                                                   !1
    9     8    >   INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
   10    11      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FJ85sQ%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.28 ms | 1395 KiB | 17 Q