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); // Dus dan is de btw: $btw = $totaal - $prijs_exclusief_btw; // Hierna pas de getallen omzetten in strings: setlocale(LC_MONETARY, 'nl_NL'); $prijs_exclusief_btw = money_format('%.2n', $prijs_exclusief_btw); $btw = money_format('%.2n', $btw); $totaal = money_format('%.2n', $totaal); echo '<pre>'; var_dump($totaal);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8UGcK
function name:  (null)
number of ops:  34
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                                               'setlocale'
         11        SEND_VAL                                                 4
         12        SEND_VAL                                                 'nl_NL'
         13        DO_ICALL                                                 
   10    14        INIT_FCALL_BY_NAME                                       'money_format'
         15        SEND_VAL_EX                                              '%25.2n'
         16        SEND_VAR_EX                                              !1
         17        DO_FCALL                                      0  $10     
         18        ASSIGN                                                   !1, $10
   11    19        INIT_FCALL_BY_NAME                                       'money_format'
         20        SEND_VAL_EX                                              '%25.2n'
         21        SEND_VAR_EX                                              !2
         22        DO_FCALL                                      0  $12     
         23        ASSIGN                                                   !2, $12
   12    24        INIT_FCALL_BY_NAME                                       'money_format'
         25        SEND_VAL_EX                                              '%25.2n'
         26        SEND_VAR_EX                                              !0
         27        DO_FCALL                                      0  $14     
         28        ASSIGN                                                   !0, $14
   14    29        ECHO                                                     '%3Cpre%3E'
   15    30        INIT_FCALL                                               'var_dump'
         31        SEND_VAR                                                 !0
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.98 ms | 1396 KiB | 22 Q