3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function c(float $input): void { var_dump(ceil($input) === $input); } c(0.3); c(12); c(0.000000000000000001); c(0.000); c(13.0); c(14.5);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9SPFF
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'c'
          1        SEND_VAL                                                 0.3
          2        DO_FCALL                                      0          
   11     3        INIT_FCALL                                               'c'
          4        SEND_VAL                                                 12
          5        DO_FCALL                                      0          
   12     6        INIT_FCALL                                               'c'
          7        SEND_VAL                                                 1.0e-18
          8        DO_FCALL                                      0          
   13     9        INIT_FCALL                                               'c'
         10        SEND_VAL                                                 0
         11        DO_FCALL                                      0          
   14    12        INIT_FCALL                                               'c'
         13        SEND_VAL                                                 13
         14        DO_FCALL                                      0          
   15    15        INIT_FCALL                                               'c'
         16        SEND_VAL                                                 14.5
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9SPFF
function name:  c
number of ops:  9
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'ceil'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        IS_IDENTICAL                                     ~2      !0, $1
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                                 
    8     8      > RETURN                                                   null

End of function c

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.28 ms | 1398 KiB | 23 Q