3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new NumberFormatter('pt_BR', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'BRL') . PHP_EOL; $formatter = new NumberFormatter('es_MX', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'MXN') . PHP_EOL; $formatter = new NumberFormatter('es_EC', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'ECS') . PHP_EOL;

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.0160.01019.23
8.3.50.0100.02419.45
8.3.40.0130.00920.45
8.3.30.0090.00620.46
8.3.20.0060.00322.04
8.3.10.0060.00325.23
8.3.00.0090.00022.05
8.2.180.0070.02119.38
8.2.170.0100.00622.96
8.2.160.0090.00922.17
8.2.150.0060.00325.66
8.2.140.0100.01024.66
8.2.130.0040.00426.16
8.2.120.0100.00020.00
8.2.110.0070.00423.76
8.2.100.0030.00919.88
8.2.90.0030.00521.05
8.2.80.0030.00619.88
8.2.70.0030.00620.00
8.2.60.0080.00020.28
8.2.50.0090.00019.88
8.2.40.0030.00621.50
8.2.30.0040.00422.18
8.2.20.0030.00519.99
8.2.10.0000.00920.38
8.2.00.0000.00820.34
8.1.280.0030.02325.92
8.1.270.0000.00921.89
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0100.00724.30
8.1.230.0060.00619.61
8.1.220.0050.00519.77
8.1.210.0000.00819.61
8.1.200.0110.00319.60
8.1.190.0000.00919.60
8.1.180.0040.00419.88
8.1.170.0060.00321.03
8.1.160.0030.00623.84
8.1.150.0080.00020.72
8.1.140.0090.00019.78
8.1.130.0080.00420.00
8.1.120.0050.00519.90
8.1.110.0080.00019.74
8.1.100.0030.00519.70
8.1.90.0030.00519.88
8.1.80.0060.00319.73
8.1.70.0020.00519.76
8.1.60.0000.01019.93
8.1.50.0070.00319.76
8.1.40.0070.00719.64
8.1.30.0090.00020.08
8.1.20.0030.00619.95
8.1.10.0080.00020.06
8.1.00.0030.00520.02
8.0.300.0030.00618.93
8.0.290.0030.00519.13
8.0.280.0030.00520.17
8.0.270.0060.00319.63
8.0.260.0040.00419.55
8.0.250.0030.00519.26
8.0.240.0040.00419.31
8.0.230.0040.00419.28
8.0.220.0040.00419.21
8.0.210.0080.00019.23
8.0.200.0040.00419.23
8.0.190.0040.00419.31
8.0.180.0030.00619.36
8.0.170.0080.00019.21
8.0.160.0080.00019.11
8.0.150.0000.00819.14
8.0.140.0000.01119.18
8.0.130.0050.00013.29
8.0.120.0000.00819.30
8.0.110.0000.01019.42
8.0.100.0000.00919.41
8.0.90.0000.00819.32
8.0.80.0130.00919.41
8.0.70.0040.00419.23
8.0.60.0000.00819.11
8.0.50.0060.00319.23
8.0.30.0110.00719.60
8.0.20.0110.01019.49
8.0.10.0030.00619.40
8.0.00.0120.01019.26
7.4.330.0050.00015.08
7.4.320.0000.00718.90
7.4.300.0100.00018.93
7.4.290.0060.00819.00
7.4.280.0030.00619.02
7.4.270.0030.00618.88
7.4.260.0050.00518.98
7.4.250.0000.00819.03
7.4.240.0000.00818.96
7.4.230.0040.00419.09
7.4.220.0170.00718.84
7.4.210.0040.01218.79
7.4.200.0040.00418.67
7.4.160.0080.00818.65
7.4.150.0090.00918.57
7.4.140.0030.02018.78
7.4.130.0080.01118.75
7.4.120.0120.00618.88
7.4.110.0120.00618.74
7.4.100.0120.00618.71
7.4.90.0070.01118.88
7.4.80.0100.00719.39
7.4.70.0030.01418.78
7.4.60.0060.01218.66
7.4.50.0000.00919.04
7.4.40.0090.00918.75
7.4.30.0080.01218.84
7.4.00.0120.00617.14
7.3.330.0040.00413.05
7.3.320.0030.00313.20
7.3.310.0030.00618.75
7.3.300.0000.00718.72
7.3.290.0070.01318.66
7.3.280.0050.01318.77
7.3.270.0080.01119.08
7.3.260.0160.00918.78
7.3.250.0120.00818.84
7.3.240.0130.01019.06
7.3.230.0090.01218.40
7.3.210.0100.01318.82
7.3.200.0120.00618.66
7.3.190.0070.01018.47
7.3.180.0100.00718.82
7.3.170.0070.01718.92
7.3.160.0160.00318.65
7.3.10.0060.00918.58
7.3.00.0090.00618.80
7.2.330.0150.00418.92
7.2.320.0160.00919.25
7.2.310.0180.00018.45
7.2.300.0000.01718.89
7.2.290.0200.00718.85
7.2.130.0070.01119.01
7.2.120.0090.00918.96
7.2.110.0040.01119.01
7.2.100.0030.01119.16
7.2.90.0070.00319.08
7.2.80.0070.00718.99
7.2.70.0030.01019.22
7.2.60.0050.01019.08
7.2.50.0080.00819.14
7.2.40.0000.01319.14
7.2.30.0030.00719.31
7.2.20.0080.00819.28
7.2.10.0130.00618.96
7.2.00.0110.00320.73
7.1.250.0100.00317.77
7.1.200.0040.01217.94
7.1.100.0030.00920.61
7.1.70.0060.00619.75
7.1.60.0060.00920.03
7.1.50.0100.01019.53
7.1.00.0030.07724.96
7.0.200.0000.00819.39
7.0.60.0030.04322.34
7.0.50.0130.06017.95
7.0.40.0070.08322.20
7.0.30.0330.04022.41
7.0.20.0270.07722.27
7.0.10.0000.07322.55
7.0.00.0030.08322.09
5.6.280.0030.07023.28
5.6.210.0070.06723.07
5.6.200.0030.07718.22
5.6.190.0000.04722.77
5.6.180.0300.07722.89
5.6.170.0200.05322.47
5.6.160.0170.07322.86
5.6.150.0170.06318.10
5.6.140.0230.06318.08
5.6.130.0070.05318.14
5.6.120.0000.09323.15
5.6.110.0070.09023.10
5.6.100.0030.06723.19
5.6.90.0070.08023.26
5.6.80.0300.06722.67
5.5.350.0230.07722.71
5.5.340.0070.04717.95
5.5.330.0030.04322.70
5.5.320.0270.04722.39
5.5.310.0370.04022.55
5.5.300.0130.03317.96
5.5.290.0130.07317.89
5.5.280.0030.04323.04
5.5.270.0030.04723.15
5.5.260.0030.06323.30
5.5.250.0030.06723.11
5.5.240.0070.07322.41
5.4.450.0170.06021.13
5.4.440.0100.06321.61
5.4.430.0130.07321.58
5.4.420.0300.06021.44
5.4.410.0100.06021.18
5.4.400.0230.06321.16
5.4.390.0230.05321.00
5.4.380.0370.05720.81
5.4.370.0230.05021.14
5.4.360.0070.06321.14
5.4.350.0130.06021.17
5.4.340.0170.06321.11
5.4.320.0170.07321.20
5.4.310.0230.06720.88
5.4.300.0270.06721.08
5.4.290.0230.04321.11
5.4.280.0230.05721.08
5.4.270.0330.04721.02
5.4.260.0130.05021.16
5.4.250.0300.04721.25
5.4.240.0300.06020.97
5.4.230.0230.05321.04
5.4.220.0170.07721.04
5.4.210.0230.05321.08
5.4.200.0600.07721.17
5.4.190.0200.05321.07
5.4.180.0270.05721.11
5.4.170.0130.06321.27
5.4.160.0170.06321.10
5.4.150.0100.06320.95
5.4.140.0170.05718.83
5.4.130.0200.06018.70
5.4.120.0330.06018.20
5.4.110.0270.07318.54
5.4.100.0230.05718.75
5.4.90.0270.06318.48
5.4.80.0170.07018.53
5.4.70.0270.04018.45
5.4.60.0300.06318.28
5.4.50.0270.06018.45
5.4.40.0330.05318.35
5.4.30.0000.03318.58
5.4.20.0370.06318.44
5.4.10.0330.07018.21

preferences:
57.56 ms | 400 KiB | 5 Q