3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?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);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.300.0080.04515.67
5.4.290.0070.04715.67
5.4.280.0110.04515.76
5.4.270.0070.04615.82
5.4.260.0050.04715.83
5.4.250.0110.04415.83
5.4.240.0150.04015.88
5.4.230.0060.04915.67
5.4.220.0120.04515.81
5.4.210.0080.04315.67
5.4.200.0150.04815.83
5.4.190.0070.04815.67
5.4.180.0120.04115.71
5.4.170.0070.04515.76
5.4.160.0070.04615.69
5.4.150.0110.04415.68
5.4.140.0100.04514.23
5.4.130.0110.04014.24
5.4.120.0110.04114.18
5.4.110.0060.04814.29
5.4.100.0120.04114.26
5.4.90.0140.03814.10
5.4.80.0090.04414.33
5.4.70.0140.04014.25
5.4.60.0150.04314.29
5.4.50.0070.05014.30
5.4.40.0150.04014.12
5.4.30.0130.04814.19
5.4.20.0110.04714.26
5.4.10.0180.04114.08
5.4.00.0070.05013.72
5.3.280.0110.05413.58
5.3.270.0120.05413.61
5.3.260.0110.05513.58
5.3.250.0060.06013.58
5.3.240.0110.05213.66
5.3.230.0140.04913.58
5.3.220.0150.05613.62
5.3.210.0100.05413.62
5.3.200.0130.04713.52
5.3.190.0100.05013.60
5.3.180.0070.04513.59
5.3.170.0090.04313.54
5.3.160.0110.04313.51
5.3.150.0130.04513.54
5.3.140.0150.03913.60
5.3.130.0130.04313.53
5.3.120.0100.04713.53
5.3.110.0090.05113.65
5.3.100.0120.04713.05
5.3.90.0090.05012.97
5.3.80.0110.04913.04
5.3.70.0110.04412.97
5.3.60.0120.04913.04
5.3.50.0130.05112.95
5.3.40.0110.05012.95
5.3.30.0080.04612.85
5.3.20.0070.04812.69
5.3.10.0090.04612.60
5.3.00.0130.04912.65

preferences:
135.13 ms | 1398 KiB | 7 Q