3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = 20.001; $formatter = new NumberFormatter(Locale::getDefault(), NumberFormatter::CURRENCY); $formatter->setSymbol(NumberFormatter::CURRENCY_SYMBOL, ''); echo $formatter->format($value, NumberFormatter::TYPE_DOUBLE);

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.0130.01018.63
8.3.50.0120.00918.36
8.3.40.0040.01220.25
8.3.30.0060.00920.21
8.3.20.0050.00321.96
8.3.10.0040.00423.58
8.3.00.0080.00023.53
8.2.180.0280.00020.29
8.2.170.0090.00622.96
8.2.160.0070.00721.77
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00023.06
8.2.120.0000.01526.35
8.2.110.0110.00321.19
8.2.100.0060.00620.05
8.2.90.0030.00520.55
8.2.80.0090.00019.38
8.2.70.0000.00919.50
8.2.60.0110.00419.68
8.2.50.0000.01219.38
8.2.40.0030.00623.82
8.2.30.0000.00720.99
8.2.20.0030.00619.61
8.2.10.0030.00620.08
8.2.00.0000.00819.95
8.1.280.0160.00325.92
8.1.270.0000.00823.64
8.1.260.0030.00628.09
8.1.250.0120.00328.09
8.1.240.0090.00023.89
8.1.230.0130.00019.70
8.1.220.0050.00319.42
8.1.210.0030.00619.23
8.1.200.0110.00719.10
8.1.190.0030.00519.13
8.1.180.0060.00318.98
8.1.170.0040.00420.34
8.1.160.0040.00422.13
8.1.150.0050.00322.27
8.1.140.0030.00621.44
8.1.130.0000.00819.72
8.1.120.0070.00019.54
8.1.110.0060.00319.61
8.1.100.0080.00019.52
8.1.90.0040.00419.21
8.1.80.0060.00319.31
8.1.70.0050.00219.43
8.1.60.0040.00819.70
8.1.50.0100.00019.58
8.1.40.0000.00819.36
8.1.30.0030.00619.79
8.1.20.0050.00319.84
8.1.10.0000.00919.75
8.1.00.0060.00619.55
8.0.300.0000.00818.91
8.0.290.0040.00418.63
8.0.280.0040.00419.93
8.0.270.0000.00719.17
8.0.260.0030.00319.16
8.0.250.0070.00018.88
8.0.240.0000.00718.97
8.0.230.0030.00318.91
8.0.220.0070.00418.83
8.0.210.0030.00418.68
8.0.200.0030.00318.87
8.0.190.0000.00818.86
8.0.180.0080.00818.89
8.0.170.0030.00518.94
8.0.160.0000.00718.67
8.0.150.0040.00418.68
8.0.140.0000.00718.67
8.0.130.0040.00413.30
8.0.120.0040.00418.86
8.0.110.0000.00819.02
8.0.100.0030.00518.63
8.0.90.0040.00418.84
8.0.80.0040.01419.06
8.0.70.0000.00818.98
8.0.60.0090.00019.14
8.0.50.0040.00418.68
8.0.30.0110.01019.17
8.0.20.0100.01019.11
8.0.10.0080.00018.98
8.0.00.0150.00418.51
7.4.330.0000.00516.71
7.4.320.0060.00018.70
7.4.300.0040.00418.62
7.4.290.0110.00518.55
7.4.280.0080.00018.61
7.4.270.0070.00018.57
7.4.260.0140.00618.61
7.4.250.0000.00818.49
7.4.240.0040.00418.66
7.4.230.0000.00718.59
7.4.220.0160.00318.72
7.4.210.0090.00618.68
7.4.200.0040.00418.41
7.4.160.0030.01318.54
7.4.150.0120.00618.49
7.4.140.0120.01018.43
7.4.130.0120.00618.40
7.4.120.0130.00718.57
7.4.110.0090.00918.53
7.4.100.0060.01218.52
7.4.90.0140.00418.34
7.4.80.0030.01419.39
7.4.70.0140.01118.47
7.4.60.0130.00518.40
7.4.50.0030.01218.51
7.4.40.0080.00818.68
7.4.30.0100.01018.52
7.4.00.0070.01116.95
7.3.330.0030.00313.20
7.3.320.0000.00613.03
7.3.310.0040.00418.22
7.3.300.0000.00818.37
7.3.290.0090.00918.26
7.3.280.0120.00818.35
7.3.270.0190.00318.38
7.3.260.0030.01318.54
7.3.250.0090.01018.33
7.3.240.0100.01018.44
7.3.230.0100.00718.54
7.3.210.0150.00318.70
7.3.200.0090.00919.39
7.3.190.0070.01318.61
7.3.180.0140.00918.79
7.3.170.0060.01218.60
7.3.160.0090.00918.71
7.2.330.0070.01018.54
7.2.320.0170.00718.52
7.2.310.0100.01018.36
7.2.300.0060.01218.61
7.2.290.0090.00918.51
7.2.60.0060.00918.77
7.2.00.0000.01121.96
7.1.200.0040.00417.26
7.1.100.0090.00020.56
7.1.70.0030.00619.16
7.1.60.0070.01319.55
7.1.50.0090.00619.07
7.1.00.0070.07324.46
7.0.200.0080.00318.95
7.0.60.0000.04323.64
7.0.50.0030.04317.93
7.0.40.0030.09022.04
7.0.30.0270.03321.98
7.0.20.0300.08322.23
7.0.10.0030.09322.07
7.0.00.0070.04721.89
5.6.210.0030.08322.74
5.6.200.0130.07018.08
5.6.190.0000.05322.35
5.6.180.0170.04322.29
5.6.170.0330.06022.14
5.6.160.0100.08022.19
5.6.150.0100.04018.11
5.6.140.0070.06018.17
5.6.130.0130.06318.09
5.6.120.0130.04023.31
5.6.110.0130.07323.09
5.6.100.0130.06322.79
5.6.90.0100.08022.82
5.6.80.0130.07022.38
5.5.350.0030.08722.43
5.5.340.0130.03018.01
5.5.330.0070.05722.10
5.5.320.0570.07721.89
5.5.310.0370.05022.21
5.5.300.0070.06717.88
5.5.290.0030.07717.92
5.5.280.0070.05722.99
5.5.270.0000.05322.88
5.5.260.0030.07022.56
5.5.250.0030.09022.85
5.5.240.0170.06022.40

preferences:
57.59 ms | 400 KiB | 5 Q