3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 44.28; $multiple = 0.31; $calc = $count / $multiple; //$calc = 44.28 / 0.36 = 123 echo round($calc)."\n"; if($calc == ceil($calc)) die("is integer"); else die("is not integer");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/MtHlp
function name:  (null)
number of ops:  18
compiled vars:  !0 = $count, !1 = $multiple, !2 = $calc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 44.28
    4     1        ASSIGN                                                   !1, 0.31
    6     2        DIV                                              ~5      !0, !1
          3        ASSIGN                                                   !2, ~5
    8     4        INIT_FCALL                                               'round'
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                         $7      
          7        CONCAT                                           ~8      $7, '%0A'
          8        ECHO                                                     ~8
    9     9        INIT_FCALL                                               'ceil'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                         $9      
         12        IS_EQUAL                                                 !2, $9
         13      > JMPZ                                                     ~10, ->16
   10    14    > > EXIT                                                     'is+integer'
         15*       JMP                                                      ->17
   12    16    > > EXIT                                                     'is+not+integer'
         17*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.74 ms | 1395 KiB | 17 Q