3v4l.org

run code in 300+ PHP versions simultaneously
<?php function HRV_label($numeric){ $labels = array("Quite low", "Low", "Medium", "High"); return $labels[floor(($numeric) * count($labels))]; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3Kj06
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   1

Function hrv_label:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3Kj06
function name:  HRV_label
number of ops:  10
compiled vars:  !0 = $numeric, !1 = $labels
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'floor'
          3        COUNT                                            ~3      !1
          4        MUL                                              ~4      !0, ~3
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                         $5      
          7        FETCH_DIM_R                                      ~6      !1, $5
          8      > RETURN                                                   ~6
    6     9*     > RETURN                                                   null

End of function hrv_label

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.24 ms | 1394 KiB | 15 Q