3v4l.org

run code in 300+ PHP versions simultaneously
<?php $n = 9.83; $currency = 'CHF'; $locale = null; var_dump($n); $formatter = new NumberFormatter($locale, NumberFormatter::CURRENCY); $formatted_value = $formatter->formatCurrency($n, $currency); var_dump($formatted_value);

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.60.0070.01120.43
8.3.50.0290.00822.91
8.3.40.0130.00320.04
8.3.30.0030.01220.07
8.3.20.0050.00321.75
8.3.10.0030.00621.98
8.3.00.0040.00425.04
8.2.180.0070.01018.75
8.2.170.0080.00822.96
8.2.160.0120.00323.70
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00423.20
8.2.110.0040.00721.39
8.2.100.0060.00619.91
8.2.90.0040.00420.61
8.2.80.0080.00019.25
8.2.70.0100.00319.50
8.2.60.0040.00419.80
8.2.50.0100.00319.63
8.2.40.0080.00021.87
8.2.30.0040.00820.88
8.2.20.0050.00319.55
8.2.10.0030.00520.11
8.2.00.0030.00620.05
8.1.280.0120.00625.92
8.1.270.0060.01023.77
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00324.02
8.1.230.0030.00919.71
8.1.220.0050.00319.43
8.1.210.0030.00719.23
8.1.200.0040.00419.13
8.1.190.0030.00518.98
8.1.180.0040.00419.10
8.1.170.0050.00520.52
8.1.160.0000.00822.12
8.1.150.0040.00420.22
8.1.140.0030.00621.55
8.1.130.0000.00719.55
8.1.120.0030.00519.65
8.1.110.0040.00419.61
8.1.100.0030.00619.49
8.1.90.0040.00419.38
8.1.80.0030.00619.32
8.1.70.0040.00419.55
8.1.60.0000.01119.61
8.1.50.0000.00819.66
8.1.40.0030.00619.57
8.1.30.0040.00419.75
8.1.20.0050.00519.70
8.1.10.0000.00819.58
8.1.00.0100.00619.48
8.0.300.0030.00518.97
8.0.290.0040.00418.75
8.0.280.0050.00219.77
8.0.270.0000.00719.06
8.0.260.0000.00819.13
8.0.250.0140.00018.75
8.0.240.0000.00718.84
8.0.230.0000.00818.95
8.0.220.0080.00018.87
8.0.210.0090.00518.85
8.0.200.0060.00618.99
8.0.190.0130.00319.00
8.0.180.0160.00018.86
8.0.170.0110.00518.90
8.0.160.0040.00418.86
8.0.150.0030.00518.57
8.0.140.0030.00818.65
8.0.130.0060.00313.34
8.0.120.0030.00618.92
8.0.110.0000.00919.05
8.0.100.0030.00619.04
8.0.90.0030.00619.14
8.0.80.0100.01319.23
8.0.70.0040.00418.91
8.0.60.0030.00519.17
8.0.50.0000.00819.02
8.0.30.0110.01019.24
8.0.20.0110.00819.40
8.0.10.0000.00819.26
8.0.00.0100.01018.69
7.4.330.0020.00216.82
7.4.320.0000.00718.67
7.4.300.0000.00718.69
7.4.290.0080.00818.51
7.4.280.0000.00818.68
7.4.270.0000.00718.56
7.4.260.0090.00018.66
7.4.250.0030.00518.65
7.4.240.0030.00618.70
7.4.230.0000.00718.73
7.4.220.0300.00018.65
7.4.210.0080.01218.73
7.4.200.0040.00418.41
7.4.160.0090.01218.56
7.4.150.0120.00618.70
7.4.140.0140.01218.58
7.4.130.0240.00518.49
7.4.120.0190.00318.46
7.4.110.0150.00418.68
7.4.100.0090.01318.55
7.4.90.0090.00918.52
7.4.80.0090.01419.39
7.4.70.0030.01518.53
7.4.60.0100.01018.43
7.4.50.0030.01018.57
7.4.40.0060.01018.42
7.4.30.0110.00718.43
7.4.00.0100.00516.78
7.3.330.0000.00613.24
7.3.320.0020.00213.02
7.3.310.0000.00818.44
7.3.300.0000.00718.32
7.3.290.0040.01318.38
7.3.280.0110.00918.51
7.3.270.0240.00718.48
7.3.260.0160.01018.65
7.3.250.0090.01018.69
7.3.240.0120.01118.72
7.3.230.0210.00318.42
7.3.210.0090.00918.08
7.3.200.0100.00718.79
7.3.190.0100.00718.78
7.3.180.0060.01518.77
7.3.170.0060.01218.54
7.3.160.0080.00818.69
7.3.120.0070.01316.58
7.3.110.0040.01517.16
7.3.100.0040.00816.97
7.3.90.0060.00316.97
7.3.80.0060.00916.90
7.3.70.0030.01316.78
7.3.60.0120.00316.67
7.3.50.0000.01516.95
7.3.40.0030.01316.49
7.3.30.0090.00616.82
7.3.20.0070.00718.22
7.3.10.0030.01018.25
7.3.00.0140.00018.38
7.2.330.0030.01518.79
7.2.320.0110.00618.45
7.2.310.0080.01218.53
7.2.300.0060.01218.43
7.2.290.0090.01218.70
7.2.250.0070.01316.95
7.2.240.0070.01316.98
7.2.230.0040.01216.68
7.2.220.0000.01816.75
7.2.210.0030.01316.97
7.2.200.0140.00017.18
7.2.190.0030.00916.99
7.2.180.0030.01316.89
7.2.170.0150.00316.83
7.2.60.0080.01118.78
7.2.00.0090.00521.83
7.1.330.0060.00917.89
7.1.320.0100.00718.01
7.1.310.0080.00817.75
7.1.300.0080.00317.56
7.1.290.0040.01417.62
7.1.280.0070.01017.62
7.1.270.0000.01117.79
7.1.260.0060.00317.70
7.1.200.0120.00317.83
7.1.100.0040.01220.45
7.1.70.0100.01019.56
7.1.60.0100.01419.56
7.1.50.0130.00319.43
7.1.00.0100.06724.59
7.0.200.2300.00717.10
7.0.60.0100.06723.63
7.0.50.0100.07717.88
7.0.40.0070.04022.21
7.0.30.0370.08021.86
7.0.20.0270.08322.14
7.0.10.0130.05721.83
7.0.00.0100.06722.10
5.6.280.0070.06022.75
5.6.210.0030.07022.79
5.6.200.0000.05318.13
5.6.190.0000.04722.33
5.6.180.0400.07022.94
5.6.170.0330.07022.18
5.6.160.0100.08322.48
5.6.150.0070.06018.19
5.6.140.0130.06018.11
5.6.130.0130.08018.12
5.6.120.0270.06323.29
5.6.110.0130.08023.22
5.6.100.0200.06723.38
5.6.90.0170.06023.18
5.6.80.0100.08022.26
5.5.350.0270.08322.39
5.5.340.0030.04017.98
5.5.330.0070.08321.91
5.5.320.0200.04322.24
5.5.310.0230.06322.07
5.5.300.0100.07717.88
5.5.290.0000.05717.90
5.5.280.0030.05322.92
5.5.270.0000.05023.12
5.5.260.0130.06722.73
5.5.250.0100.07322.64
5.5.240.0030.08021.99

preferences:
46.77 ms | 401 KiB | 5 Q