3v4l.org

run code in 300+ PHP versions simultaneously
<?php $price = 1079; $taxrate = 1.08; $rewrite = $price / $taxrate; $floatflag = ($price * 100) % ($taxrate * 100); print_r ($floatflag . "\n"); print_r ($rewrite . "\n"); if($floatflag != 0){ $rewrite = floor($rewrite); print_r ("is float \n"); } else{ print_r ("is not float \n"); } print_r ($rewrite);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 26
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NcOJ0
function name:  (null)
number of ops:  33
compiled vars:  !0 = $price, !1 = $taxrate, !2 = $rewrite, !3 = $floatflag
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1079
    3     1        ASSIGN                                                   !1, 1.08
    4     2        DIV                                              ~6      !0, !1
          3        ASSIGN                                                   !2, ~6
    5     4        MUL                                              ~8      !0, 100
          5        MUL                                              ~9      !1, 100
          6        MOD                                              ~10     ~8, ~9
          7        ASSIGN                                                   !3, ~10
    7     8        INIT_FCALL                                               'print_r'
          9        CONCAT                                           ~12     !3, '%0A'
         10        SEND_VAL                                                 ~12
         11        DO_ICALL                                                 
    9    12        INIT_FCALL                                               'print_r'
         13        CONCAT                                           ~14     !2, '%0A'
         14        SEND_VAL                                                 ~14
         15        DO_ICALL                                                 
   10    16        IS_NOT_EQUAL                                             !3, 0
         17      > JMPZ                                                     ~16, ->26
   11    18    >   INIT_FCALL                                               'floor'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $17     
         21        ASSIGN                                                   !2, $17
   12    22        INIT_FCALL                                               'print_r'
         23        SEND_VAL                                                 'is+float+%0A'
         24        DO_ICALL                                                 
         25      > JMP                                                      ->29
   14    26    >   INIT_FCALL                                               'print_r'
         27        SEND_VAL                                                 'is+not+float+%0A'
         28        DO_ICALL                                                 
   16    29    >   INIT_FCALL                                               'print_r'
         30        SEND_VAR                                                 !2
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.98 ms | 1396 KiB | 17 Q