3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 24.99; $b = 25; $epsilon = 0.01; echo (abs($a-$b)); if(abs($a-$b) <= $epsilon) { echo "true"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/pBF3h
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b, !2 = $epsilon
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 24.99
    4     1        ASSIGN                                                   !1, 25
    5     2        ASSIGN                                                   !2, 0.01
    7     3        INIT_FCALL                                               'abs'
          4        SUB                                              ~6      !0, !1
          5        SEND_VAL                                                 ~6
          6        DO_ICALL                                         $7      
          7        ECHO                                                     $7
    9     8        INIT_FCALL                                               'abs'
          9        SUB                                              ~8      !0, !1
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                         $9      
         12        IS_SMALLER_OR_EQUAL                                      $9, !2
         13      > JMPZ                                                     ~10, ->15
   10    14    >   ECHO                                                     'true'
   11    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.23 ms | 1394 KiB | 15 Q