3v4l.org

run code in 500+ PHP versions simultaneously
<?php $price = array("0.00","229.00","5.00","0.00","3.25"); $min = array_reduce($price,function($carry,$item){return $carry > 0 && $carry < $item ? $carray : $item;}); echo $min;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CttaX
function name:  (null)
number of ops:  9
compiled vars:  !0 = $price, !1 = $min
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        DO_ICALL                                             $4      
          6        ASSIGN                                                       !1, $4
    5     7        ECHO                                                         !1
    6     8      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/CttaX
function name:  {closure:/in/CttaX:4}
number of ops:  12
compiled vars:  !0 = $carry, !1 = $item, !2 = $carray
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
          2        IS_SMALLER                                           ~3      0, !0
          3      > JMPZ_EX                                              ~3      ~3, ->6
          4    >   IS_SMALLER                                           ~4      !0, !1
          5        BOOL                                                 ~3      ~4
          6    > > JMPZ                                                         ~3, ->9
          7    >   QM_ASSIGN                                            ~5      !2
          8      > JMP                                                          ->10
          9    >   QM_ASSIGN                                            ~5      !1
         10    > > RETURN                                                       ~5
         11*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.22 ms | 1875 KiB | 14 Q