3v4l.org

run code in 500+ 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, '.', ''); echo ($calc)."\n"; if(($calc) == round($calc)) die("is integer"); else die("is not integer");
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 24
Branch analysis from position: 20
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 61) Position 1 = -2
filename:       /in/RJ9kb
function name:  (null)
number of ops:  28
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
    9     6        INIT_FCALL                                                   'number_format'
          7        SEND_VAR                                                     !2
          8        SEND_VAL                                                     2
          9        SEND_VAL                                                     '.'
         10        SEND_VAL                                                     ''
         11        DO_ICALL                                             $9      
         12        ASSIGN                                                       !2, $9
   11    13        CONCAT                                               ~11     !2, '%0A'
         14        ECHO                                                         ~11
   12    15        INIT_FCALL                                                   'round'
         16        SEND_VAR                                                     !2
         17        DO_ICALL                                             $12     
         18        IS_EQUAL                                                     !2, $12
         19      > JMPZ                                                         ~13, ->24
   13    20    > > INIT_FCALL                                                   'exit'
         21*       SEND_VAL                                                     'is+integer'
         22*       DO_ICALL                                                     
   12    23*       JMP                                                          ->27
   15    24    > > INIT_FCALL                                                   'exit'
         25*       SEND_VAL                                                     'is+not+integer'
         26*       DO_ICALL                                                     
         27*     > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
137.65 ms | 2875 KiB | 16 Q