3v4l.org

run code in 300+ PHP versions simultaneously
<?php $math = bcadd(0.1, 0.2); $result = 0.3; var_dump($math == $result); var_dump($math === $result); var_dump($math);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rdrPM
function name:  (null)
number of ops:  18
compiled vars:  !0 = $math, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'bcadd'
          1        SEND_VAL_EX                                              0.1
          2        SEND_VAL_EX                                              0.2
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !0, $2
    3     5        ASSIGN                                                   !1, 0.3
    5     6        INIT_FCALL                                               'var_dump'
          7        IS_EQUAL                                         ~5      !0, !1
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_dump'
         11        IS_IDENTICAL                                     ~7      !0, !1
         12        SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.83 ms | 1394 KiB | 18 Q