3v4l.org

run code in 300+ PHP versions simultaneously
<?php $originalAmount = 100; $actualAmount = 75; $minimalAmountChange = 1.2; var_dump($originalAmount > $actualAmount*$minimalAmountChange || $originalAmount < $actualAmount/$minimalAmountChange);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/SBhek
function name:  (null)
number of ops:  13
compiled vars:  !0 = $originalAmount, !1 = $actualAmount, !2 = $minimalAmountChange
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 100
    3     1        ASSIGN                                                   !1, 75
    4     2        ASSIGN                                                   !2, 1.2
    5     3        INIT_FCALL                                               'var_dump'
          4        MUL                                              ~6      !1, !2
          5        IS_SMALLER                                       ~7      ~6, !0
          6      > JMPNZ_EX                                         ~7      ~7, ->10
          7    >   DIV                                              ~8      !1, !2
          8        IS_SMALLER                                       ~9      !0, ~8
          9        BOOL                                             ~7      ~9
         10    >   SEND_VAL                                                 ~7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.6 ms | 1394 KiB | 15 Q