3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 2.98765431; $y = 2.98765430; $epsilon = 0.00001; if(abs($x-$y) < $epsilon) { echo "true"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/gfPNe
function name:  (null)
number of ops:  11
compiled vars:  !0 = $x, !1 = $y, !2 = $epsilon
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 2.98765
    3     1        ASSIGN                                                   !1, 2.98765
    4     2        ASSIGN                                                   !2, 1.0e-5
          3        INIT_FCALL                                               'abs'
          4        SUB                                              ~6      !0, !1
          5        SEND_VAL                                                 ~6
          6        DO_ICALL                                         $7      
          7        IS_SMALLER                                               $7, !2
          8      > JMPZ                                                     ~8, ->10
          9    >   ECHO                                                     'true'
    6    10    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.21 ms | 1394 KiB | 15 Q