3v4l.org

run code in 500+ PHP versions simultaneously
<?php $customerCredit = 105.00; $customerCredit -= 100.00; $customerCredit -= 4.95; $customerCredit -= 0.05; if ($customerCredit > 0) { echo 'Go for it!'; } elseif ($customerCredit == 0.0) { echo 'Zero balance, sorry'; } else { echo 'Omg, your balance is negative'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d5kfl
function name:  (null)
number of ops:  14
compiled vars:  !0 = $customerCredit
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 105
    5     1        ASSIGN_OP                                         2          !0, 100
    6     2        ASSIGN_OP                                         2          !0, 4.95
    7     3        ASSIGN_OP                                         2          !0, 0.05
    9     4        IS_SMALLER                                                   0, !0
          5      > JMPZ                                                         ~5, ->8
   10     6    >   ECHO                                                         'Go+for+it%21'
    9     7      > JMP                                                          ->13
   11     8    >   IS_EQUAL                                                     !0, 0
          9      > JMPZ                                                         ~6, ->12
   12    10    >   ECHO                                                         'Zero+balance%2C+sorry'
   11    11      > JMP                                                          ->13
   14    12    >   ECHO                                                         'Omg%2C+your+balance+is+negative'
   15    13    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
143.78 ms | 1879 KiB | 13 Q