3v4l.org

run code in 500+ PHP versions simultaneously
<?php $customerCredit = 105.00; $customerCredit = round($customerCredit - 100.00, 2); $customerCredit = round($customerCredit - 4.95, 2); $customerCredit = round($customerCredit - 0.05, 2); 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 = 21, Position 2 = 23
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lomgr
function name:  (null)
number of ops:  29
compiled vars:  !0 = $customerCredit
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 105
    5     1        INIT_FCALL                                                   'round'
          2        SUB                                                  ~2      !0, 100
          3        SEND_VAL                                                     ~2
          4        SEND_VAL                                                     2
          5        DO_ICALL                                             $3      
          6        ASSIGN                                                       !0, $3
    6     7        INIT_FCALL                                                   'round'
          8        SUB                                                  ~5      !0, 4.95
          9        SEND_VAL                                                     ~5
         10        SEND_VAL                                                     2
         11        DO_ICALL                                             $6      
         12        ASSIGN                                                       !0, $6
    7    13        INIT_FCALL                                                   'round'
         14        SUB                                                  ~8      !0, 0.05
         15        SEND_VAL                                                     ~8
         16        SEND_VAL                                                     2
         17        DO_ICALL                                             $9      
         18        ASSIGN                                                       !0, $9
    9    19        IS_SMALLER                                                   0, !0
         20      > JMPZ                                                         ~11, ->23
   10    21    >   ECHO                                                         'Go+for+it%21'
    9    22      > JMP                                                          ->28
   11    23    >   IS_EQUAL                                                     !0, 0
         24      > JMPZ                                                         ~12, ->27
   12    25    >   ECHO                                                         'Zero+balance%2C+sorry'
   11    26      > JMP                                                          ->28
   14    27    >   ECHO                                                         'Omg%2C+your+balance+is+negative'
   15    28    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
136.02 ms | 1882 KiB | 14 Q