3v4l.org

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

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

End of function floatmod

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.36 ms | 1397 KiB | 16 Q