3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Gegeven: de prijs inclusief btw komt uit de database $totaal = 49; // Artikelprijs exclusief btw berekenen: $prijs_exclusief_btw = round($totaal / 1.21, 2); // Dan is de btw: $btw = $totaal - $prijs_exclusief_btw; // Hierna pas de getallen omzetten in strings: $prijs_exclusief_btw = number_format($prijs_exclusief_btw, 2, ',', '.'); $btw = number_format($btw, 2, ',', '.'); $totaal = number_format($totaal, 2, ',', '.'); echo '<pre>'; var_dump($prijs_exclusief_btw, $btw, $totaal);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OH0sL
function name:  (null)
number of ops:  37
compiled vars:  !0 = $totaal, !1 = $prijs_exclusief_btw, !2 = $btw
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 49
    5     1        INIT_FCALL                                               'round'
          2        DIV                                              ~4      !0, 1.21
          3        SEND_VAL                                                 ~4
          4        SEND_VAL                                                 2
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
    7     7        SUB                                              ~7      !0, !1
          8        ASSIGN                                                   !2, ~7
    9     9        INIT_FCALL                                               'number_format'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 2
         12        SEND_VAL                                                 '%2C'
         13        SEND_VAL                                                 '.'
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !1, $9
   10    16        INIT_FCALL                                               'number_format'
         17        SEND_VAR                                                 !2
         18        SEND_VAL                                                 2
         19        SEND_VAL                                                 '%2C'
         20        SEND_VAL                                                 '.'
         21        DO_ICALL                                         $11     
         22        ASSIGN                                                   !2, $11
   11    23        INIT_FCALL                                               'number_format'
         24        SEND_VAR                                                 !0
         25        SEND_VAL                                                 2
         26        SEND_VAL                                                 '%2C'
         27        SEND_VAL                                                 '.'
         28        DO_ICALL                                         $13     
         29        ASSIGN                                                   !0, $13
   13    30        ECHO                                                     '%3Cpre%3E'
   14    31        INIT_FCALL                                               'var_dump'
         32        SEND_VAR                                                 !1
         33        SEND_VAR                                                 !2
         34        SEND_VAR                                                 !0
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
202.55 ms | 1396 KiB | 19 Q