3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a='26.15'; $b='0.00'; if ($a && $b) { $discount = @round($promotion_temp * 10 / $price_temp, 2); echo $discount; }else{ echo 'fail'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 16
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/WuRVo
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $discount, !3 = $promotion_temp, !4 = $price_temp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '26.15'
    4     1        ASSIGN                                                   !1, '0.00'
    5     2      > JMPZ_EX                                          ~7      !0, ->4
          3    >   BOOL                                             ~7      !1
          4    > > JMPZ                                                     ~7, ->16
    6     5    >   BEGIN_SILENCE                                    ~8      
          6        INIT_FCALL                                               'round'
          7        MUL                                              ~9      !3, 10
          8        DIV                                              ~10     ~9, !4
          9        SEND_VAL                                                 ~10
         10        SEND_VAL                                                 2
         11        DO_ICALL                                         $11     
         12        END_SILENCE                                              ~8
         13        ASSIGN                                                   !2, $11
    8    14        ECHO                                                     !2
         15      > JMP                                                      ->17
   10    16    >   ECHO                                                     'fail'
   11    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.82 ms | 1395 KiB | 15 Q