3v4l.org

run code in 300+ PHP versions simultaneously
<?php function floatEquals(float $a, float $b):bool{ if ($a===0.0 || $b ===0.0){ return true; }else{ return false; } } $number = 0; $number2 = 1448; floatEquals($number, $number2); if($number !== 0.0){ $ratio = $x/$number; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/WkNnP
function name:  (null)
number of ops:  11
compiled vars:  !0 = $number, !1 = $number2, !2 = $ratio, !3 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN                                                   !0, 0
   14     1        ASSIGN                                                   !1, 1448
   15     2        INIT_FCALL                                               'floatequals'
          3        SEND_VAR                                                 !0
          4        SEND_VAR                                                 !1
          5        DO_FCALL                                      0          
   16     6        IS_NOT_IDENTICAL                                         !0, 0
          7      > JMPZ                                                     ~7, ->10
   17     8    >   DIV                                              ~8      !3, !0
          9        ASSIGN                                                   !2, ~8
   18    10    > > RETURN                                                   1

Function floatequals:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/WkNnP
function name:  floatEquals
number of ops:  12
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        IS_IDENTICAL                                     ~2      !0, 0
          3      > JMPNZ_EX                                         ~2      ~2, ->6
          4    >   IS_IDENTICAL                                     ~3      !1, 0
          5        BOOL                                             ~2      ~3
          6    > > JMPZ                                                     ~2, ->9
    6     7    > > RETURN                                                   <true>
    5     8*       JMP                                                      ->10
    8     9    > > RETURN                                                   <false>
   11    10*       VERIFY_RETURN_TYPE                                       
         11*     > RETURN                                                   null

End of function floatequals

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.96 ms | 1004 KiB | 14 Q