3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = (float)(44.28); $multiple = (float)(0.36); $calc = $count / $multiple; //$calc = 44.28 / 0.36 = 123 //$calc = number_format($calc, 2, '.', ''); if ((string)(int) $calc === (string)$calc) die("is integer"); else die("is not integer");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/P46v4
function name:  (null)
number of ops:  15
compiled vars:  !0 = $count, !1 = $multiple, !2 = $calc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   CAST                                          5  ~3      44.28
          1        ASSIGN                                                   !0, ~3
    4     2        CAST                                          5  ~5      0.36
          3        ASSIGN                                                   !1, ~5
    6     4        DIV                                              ~7      !0, !1
          5        ASSIGN                                                   !2, ~7
   11     6        CAST                                          4  ~9      !2
          7        CAST                                          6  ~10     ~9
          8        CAST                                          6  ~11     !2
          9        IS_IDENTICAL                                             ~10, ~11
         10      > JMPZ                                                     ~12, ->13
   12    11    > > EXIT                                                     'is+integer'
         12*       JMP                                                      ->14
   14    13    > > EXIT                                                     'is+not+integer'
         14*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.98 ms | 1384 KiB | 13 Q