3v4l.org

run code in 500+ PHP versions simultaneously
<?php $amountA = 11.125555; $amountB = 11.129999; if (round($amountA, 2) === round($amountB, 2)) { echo 'While the value is not the same, the amount is equal'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/03dre
function name:  (null)
number of ops:  14
compiled vars:  !0 = $amountA, !1 = $amountB
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 11.1256
    4     1        ASSIGN                                                       !1, 11.13
    6     2        INIT_FCALL                                                   'round'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     2
          5        DO_ICALL                                             $4      
          6        INIT_FCALL                                                   'round'
          7        SEND_VAR                                                     !1
          8        SEND_VAL                                                     2
          9        DO_ICALL                                             $5      
         10        IS_IDENTICAL                                                 $4, $5
         11      > JMPZ                                                         ~6, ->13
    7    12    >   ECHO                                                         'While+the+value+is+not+the+same%2C+the+amount+is+equal'
    8    13    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
136.23 ms | 1885 KiB | 14 Q