3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = (float)(44.29); $multiple = (float)(0.36); $calc = $count / $multiple; echo $calc."\n"; if(floor($calc) > $calc) { echo "Ceiling...".ceil($calc)."\n"; } var_dump($calc); //$calc = 44.28 / 0.36 = 123 echo ceil($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 = 13, Position 2 = 19
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 34
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 19
filename:       /in/SN2hU
function name:  (null)
number of ops:  36
compiled vars:  !0 = $count, !1 = $multiple, !2 = $calc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   CAST                                          5  ~3      44.29
          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
    7     6        CONCAT                                           ~9      !2, '%0A'
          7        ECHO                                                     ~9
    9     8        INIT_FCALL                                               'floor'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $10     
         11        IS_SMALLER                                               !2, $10
         12      > JMPZ                                                     ~11, ->19
   10    13    >   INIT_FCALL                                               'ceil'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $12     
         16        CONCAT                                           ~13     'Ceiling...', $12
         17        CONCAT                                           ~14     ~13, '%0A'
         18        ECHO                                                     ~14
   13    19    >   INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
   15    22        INIT_FCALL                                               'ceil'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                         $16     
         25        CONCAT                                           ~17     $16, '%0A'
         26        ECHO                                                     ~17
   16    27        INIT_FCALL                                               'ceil'
         28        SEND_VAR                                                 !2
         29        DO_ICALL                                         $18     
         30        IS_EQUAL                                                 !2, $18
         31      > JMPZ                                                     ~19, ->34
   17    32    > > EXIT                                                     'is+integer'
         33*       JMP                                                      ->35
   19    34    > > EXIT                                                     'is+not+integer'
         35*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.19 ms | 1396 KiB | 19 Q