3v4l.org

run code in 300+ PHP versions simultaneously
<?php function highest_multiple_of_7($limit) { return 7 * floor($limit / 7); } echo highest_multiple_of_7(32);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AY0Yq
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'highest_multiple_of_7'
          1        SEND_VAL                                                 32
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function highest_multiple_of_7:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AY0Yq
function name:  highest_multiple_of_7
number of ops:  8
compiled vars:  !0 = $limit
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'floor'
          2        DIV                                              ~1      !0, 7
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                         $2      
          5        MUL                                              ~3      $2, 7
          6      > RETURN                                                   ~3
    6     7*     > RETURN                                                   null

End of function highest_multiple_of_7

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.53 ms | 1397 KiB | 16 Q