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/lvnD3
function name:  (null)
number of ops:  38
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
          3        SEND_VAL                                                 ~4
          4        SEND_VAL                                                 21
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !1, $5
    7     8        SUB                                              ~7      !0, !1
          9        ASSIGN                                                   !2, ~7
    9    10        INIT_FCALL                                               'number_format'
         11        SEND_VAR                                                 !1
         12        SEND_VAL                                                 2
         13        SEND_VAL                                                 '%2C'
         14        SEND_VAL                                                 '.'
         15        DO_ICALL                                         $9      
         16        ASSIGN                                                   !1, $9
   10    17        INIT_FCALL                                               'number_format'
         18        SEND_VAR                                                 !2
         19        SEND_VAL                                                 2
         20        SEND_VAL                                                 '%2C'
         21        SEND_VAL                                                 '.'
         22        DO_ICALL                                         $11     
         23        ASSIGN                                                   !2, $11
   11    24        INIT_FCALL                                               'number_format'
         25        SEND_VAR                                                 !0
         26        SEND_VAL                                                 2
         27        SEND_VAL                                                 '%2C'
         28        SEND_VAL                                                 '.'
         29        DO_ICALL                                         $13     
         30        ASSIGN                                                   !0, $13
   13    31        ECHO                                                     '%3Cpre%3E'
   14    32        INIT_FCALL                                               'var_dump'
         33        SEND_VAR                                                 !1
         34        SEND_VAR                                                 !2
         35        SEND_VAR                                                 !0
         36        DO_ICALL                                                 
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.38 ms | 1396 KiB | 19 Q