3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = (float)'2.00'; $b = 2; echo (abs(($a-$b)/$b) < 0.00001);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gmMDD
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   CAST                                          5  ~2      '2.00'
          1        ASSIGN                                                   !0, ~2
    3     2        ASSIGN                                                   !1, 2
    4     3        INIT_FCALL                                               'abs'
          4        SUB                                              ~5      !0, !1
          5        DIV                                              ~6      ~5, !1
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                         $7      
          8        IS_SMALLER                                       ~8      $7, 1.0e-5
          9        ECHO                                                     ~8
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.93 ms | 1394 KiB | 15 Q