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);

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)
8.3.40.0070.00718.54
8.3.30.0000.01418.96
8.3.20.0040.00420.41
8.3.10.0040.00423.78
8.3.00.0090.00020.90
8.2.170.0100.01022.96
8.2.160.0100.01020.38
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.01126.16
8.2.120.0000.00819.76
8.2.110.0030.00722.06
8.2.100.0090.00321.07
8.2.90.0000.00819.36
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0000.00918.04
8.2.50.0050.00318.07
8.2.40.0050.00318.16
8.2.30.0080.00018.37
8.2.20.0000.00817.68
8.2.10.0030.00618.13
8.2.00.0040.00419.57
8.1.270.0040.00423.84
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00623.73
8.1.230.0070.00419.09
8.1.220.0080.00017.78
8.1.210.0030.00618.77
8.1.200.0070.00317.35
8.1.190.0000.00817.13
8.1.180.0000.00818.10
8.1.170.0000.00918.48
8.1.160.0050.00221.92
8.1.150.0060.00318.70
8.1.140.0050.00317.46
8.1.130.0030.00317.83
8.1.120.0000.00717.47
8.1.110.0040.00417.50
8.1.100.0040.00417.41
8.1.90.0000.00817.38
8.1.80.0000.00717.36
8.1.70.0040.00417.29
8.1.60.0030.00617.48
8.1.50.0050.00317.53
8.1.40.0040.00417.54
8.1.30.0060.00317.63
8.1.20.0070.00017.66
8.1.10.0000.00817.49
8.1.00.0000.00717.46
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0030.00318.54
8.0.270.0000.00717.31
8.0.260.0080.00017.32
8.0.250.0070.00017.07
8.0.240.0000.00717.00
8.0.230.0050.00217.00
8.0.220.0000.00616.92
8.0.210.0000.00716.99
8.0.200.0000.00616.88
8.0.190.0030.00516.98
8.0.180.0080.00016.84
8.0.170.0040.00416.95
8.0.160.0000.00716.93
8.0.150.0000.00716.82
8.0.140.0000.00716.84
8.0.130.0050.00013.35
8.0.120.0000.00916.91
8.0.110.0040.00416.75
8.0.100.0040.00416.75
8.0.90.0030.00516.84
8.0.80.0160.00316.84
8.0.70.0000.00716.87
8.0.60.0000.00716.67
8.0.50.0000.00716.79
8.0.30.0120.00617.12
8.0.20.0160.00317.40
8.0.10.0040.00417.00
8.0.00.0070.01216.88
7.4.330.0000.00515.00
7.4.320.0030.00316.55
7.4.300.0030.00316.41
7.4.290.0040.00416.63
7.4.280.0030.00316.48
7.4.270.0050.00316.43
7.4.260.0040.00416.58
7.4.250.0000.00716.39
7.4.240.0020.00516.48
7.4.230.0000.00716.48
7.4.220.0070.01016.54
7.4.210.0070.01016.37
7.4.200.0000.00716.53
7.4.160.0100.00716.63
7.4.150.0100.01017.40
7.4.140.0110.01017.86
7.4.130.0100.00816.55
7.4.120.0080.01116.59
7.4.110.0160.00016.45
7.4.100.0100.00716.72
7.4.90.0130.00316.46
7.4.80.0110.01119.39
7.4.70.0090.00916.39
7.4.60.0170.00016.46
7.4.50.0050.00316.39
7.4.40.0090.01216.50
7.4.30.0030.01216.69
7.4.00.0060.01214.97
7.3.330.0020.00213.19
7.3.320.0000.00513.30
7.3.310.0070.00016.48
7.3.300.0030.00316.23
7.3.290.0060.00916.44
7.3.280.0110.00516.42
7.3.270.0080.00917.40
7.3.260.0080.01416.68
7.3.250.0070.01416.50
7.3.240.0140.00316.64
7.3.230.0120.00516.60
7.3.210.0060.01316.56
7.3.200.0090.00919.39
7.3.190.0120.01116.44
7.3.180.0140.00416.63
7.3.170.0120.00616.50
7.3.160.0060.00916.37
7.3.120.0070.00715.08
7.2.330.0110.00616.54
7.2.320.0130.01016.49
7.2.310.0030.01316.71
7.2.300.0110.00516.70
7.2.290.0130.00716.50
7.2.00.0070.00719.63
7.1.100.0190.01318.00
7.1.70.0030.01017.34
7.1.60.0070.01019.70
7.1.50.0240.01734.88
7.1.00.0070.07322.67
7.0.200.0030.00516.75
7.0.140.0100.06722.30
7.0.100.0170.07720.12
7.0.90.0130.06720.12
7.0.80.0130.07320.12
7.0.70.0130.08320.14
7.0.60.0130.08020.06
7.0.50.0100.08020.46
7.0.40.0070.07020.31
7.0.30.0130.08020.31
7.0.20.0170.08020.34
7.0.10.0070.08320.30
7.0.00.0170.04020.29
5.6.280.0130.06321.14
5.6.250.0000.05720.87
5.6.240.0030.08320.84
5.6.230.0170.06320.87
5.6.220.0030.09020.79
5.6.210.0070.08320.89
5.6.200.0200.06721.31
5.6.190.0170.07321.26
5.6.180.0200.04721.18
5.6.170.0070.08021.17
5.6.160.0070.08021.30
5.6.150.0130.07021.33
5.6.140.0070.07721.20
5.6.130.0070.08021.27
5.6.120.0030.07321.27
5.6.110.0070.08321.23
5.6.100.0030.08321.18
5.6.90.0070.07321.15
5.6.80.0030.08320.60
5.6.70.0070.08320.64
5.6.60.0070.08020.59
5.6.50.0030.08720.54
5.6.40.0070.08720.66
5.6.30.0100.07320.55
5.6.20.0070.07720.54
5.6.10.0030.08020.50
5.6.00.0070.06320.58
5.5.380.0100.08020.57
5.5.370.0070.07020.52
5.5.360.0100.07320.71
5.5.350.0070.07320.58
5.5.340.0070.07720.99
5.5.330.0100.07721.11
5.5.320.0070.08321.11
5.5.310.0000.05721.09
5.5.300.0070.08321.02
5.5.290.0130.06720.98
5.5.280.0130.06721.06
5.5.270.0070.08021.11
5.5.260.0030.08721.06
5.5.250.0000.09320.79
5.5.240.0070.08020.36
5.5.230.0070.08720.34
5.5.220.0130.07020.47
5.5.210.0100.07320.45
5.5.200.0130.07320.39
5.5.190.0030.06020.42
5.5.180.0030.08020.41
5.5.160.0070.08020.29
5.5.150.0030.05020.49
5.5.140.0030.08020.32
5.5.130.0100.07320.28
5.5.120.0000.08320.38
5.5.110.0030.06320.33
5.5.100.0200.05020.32
5.5.90.0070.07020.31
5.5.80.0030.07720.27
5.5.70.0070.08320.34
5.5.60.0070.08020.27
5.5.50.0100.06720.16
5.5.40.0170.07020.24
5.5.30.0130.07020.27
5.5.20.0100.08020.17
5.5.10.0230.03720.17
5.5.00.0130.07020.18
5.4.450.0070.08319.48
5.4.440.0070.07719.34
5.4.430.0000.06719.52
5.4.420.0100.06719.53
5.4.410.0170.07019.48
5.4.400.0170.04319.19
5.4.390.0030.05019.21
5.4.380.0030.06319.42
5.4.370.0100.07019.18
5.4.360.0070.07719.22
5.4.350.0030.08019.09
5.4.340.0030.05019.09
5.4.320.0070.07719.32
5.4.310.0070.07019.00
5.4.300.0030.05319.20
5.4.290.0100.07319.09
5.4.280.0070.07319.41
5.4.270.0100.06319.24
5.4.260.0130.06719.32
5.4.250.0130.07019.15
5.4.240.0070.04719.09
5.4.230.0030.05319.18
5.4.220.0070.07719.10
5.4.210.0070.05019.24
5.4.200.0030.07019.14
5.4.190.0070.06019.28
5.4.180.0070.04319.09
5.4.170.0030.05318.99
5.4.160.0070.07719.21
5.4.150.0070.08019.11
5.4.140.0030.07316.46
5.4.130.0030.06316.48
5.4.120.0070.07316.30
5.4.110.0070.07716.58
5.4.100.0070.07716.57
5.4.90.0070.04016.57
5.4.80.0170.06016.45
5.4.70.0030.07316.59
5.4.60.0030.05016.53
5.4.50.0030.07716.55
5.4.40.0100.03716.36
5.4.30.0170.06316.51
5.4.20.0030.07716.43
5.4.10.0130.06316.52
5.4.00.0070.06315.74
5.3.290.0070.07714.76
5.3.280.0200.05714.68
5.3.270.0030.08014.71
5.3.260.0170.04014.61
5.3.250.0130.06014.69
5.3.240.0070.07314.66
5.3.230.0100.07314.68
5.3.220.0100.06714.66
5.3.210.0030.04714.63
5.3.200.0030.06714.64
5.3.190.0070.06314.61
5.3.180.0070.07014.67
5.3.170.0170.06314.64
5.3.160.0100.07014.64
5.3.150.0030.07714.63
5.3.140.0130.05714.60
5.3.130.0100.06714.63
5.3.120.0030.08014.58
5.3.110.0070.07714.73
5.3.100.0030.06014.12
5.3.90.0100.06314.09
5.3.80.0130.06714.05
5.3.70.0030.06314.19
5.3.60.0030.05314.10
5.3.50.0100.06314.13
5.3.40.0030.07714.13
5.3.30.0100.07014.09
5.3.20.0100.06713.73
5.3.10.0030.04013.62
5.3.00.0130.06313.76
5.2.170.0100.06011.11
5.2.160.0030.04711.35
5.2.150.0070.06011.18
5.2.140.0070.06011.29
5.2.130.0030.07011.22
5.2.120.0070.06011.09
5.2.110.0000.04011.30
5.2.100.0070.06310.98
5.2.90.0000.03711.30
5.2.80.0070.05311.20
5.2.70.0030.03711.21
5.2.60.0000.03011.09
5.2.50.0000.03311.21
5.2.40.0030.04711.11
5.2.30.0000.03710.89
5.2.20.0000.03710.95
5.2.10.0070.02710.94
5.2.00.0070.03010.89
5.1.60.0070.02010.16
5.1.50.0030.02310.16
5.1.40.0000.02710.16
5.1.30.0000.03010.52
5.1.20.0000.02710.53
5.1.10.0000.02710.22
5.1.00.0070.02710.23
5.0.50.0000.02010.16
5.0.40.0000.02010.16
5.0.30.0000.03010.16
5.0.20.0000.02010.16
5.0.10.0030.04310.16
5.0.00.0000.02710.16
4.4.90.0000.01710.16
4.4.80.0000.02310.16
4.4.70.0000.01710.16
4.4.60.0000.01710.16
4.4.50.0030.01310.16
4.4.40.0000.02710.16
4.4.30.0030.01310.16
4.4.20.0030.01310.16
4.4.10.0070.01010.16
4.4.00.0000.02310.16
4.3.110.0000.02010.16
4.3.100.0030.02010.16
4.3.90.0000.03710.16
4.3.80.0000.05310.16
4.3.70.0000.01710.16
4.3.60.0030.01310.16
4.3.50.0000.03710.16
4.3.40.0000.02310.16
4.3.30.0030.03310.16
4.3.20.0000.02710.16
4.3.10.0000.03710.16
4.3.00.0030.03310.16

preferences:
42.07 ms | 400 KiB | 5 Q