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);
Output for git.master, git.master_jit, rfc.property-hooks
<pre>string(5) "49,00" string(4) "0,00" string(5) "49,00"

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
93.27 ms | 401 KiB | 8 Q