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_AR', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'ARS') . PHP_EOL; $formatter = new NumberFormatter('es_CL', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'CLP') . PHP_EOL; $formatter = new NumberFormatter('es_CO', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'COP') . PHP_EOL; $formatter = new NumberFormatter('es_PA', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'PAB') . PHP_EOL; $formatter = new NumberFormatter('es_PE', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'PEN') . PHP_EOL; $formatter = new NumberFormatter('es_VE', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'VEF') . PHP_EOL; $formatter = new NumberFormatter('es_EC', NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1256.66, 'USD') . 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.70.0100.02421.03
8.3.60.0100.02419.38
8.3.50.0130.02822.65
8.3.40.0170.00020.79
8.3.30.0070.01720.77
8.3.20.0060.00322.35
8.3.10.0040.00425.67
8.3.00.0000.00922.06
8.2.180.0100.02121.04
8.2.170.0130.00322.96
8.2.160.0090.00922.16
8.2.150.0090.00024.18
8.2.140.0060.00924.66
8.2.130.0030.00626.16
8.2.120.0100.00019.88
8.2.110.0120.00023.89
8.2.100.0060.00620.00
8.2.90.0040.00421.10
8.2.80.0060.00320.13
8.2.70.0060.00319.75
8.2.60.0000.01020.30
8.2.50.0030.00619.74
8.2.40.0000.00921.69
8.2.30.0060.00322.25
8.2.20.0000.00920.10
8.2.10.0060.00320.39
8.2.00.0050.00320.30
8.1.280.0170.02125.92
8.1.270.0090.00022.07
8.1.260.0000.00926.35
8.1.250.0040.00428.09
8.1.240.0000.01224.17
8.1.230.0070.00719.72
8.1.220.0000.00920.03
8.1.210.0030.00619.73
8.1.200.0060.00619.73
8.1.190.0060.00319.48
8.1.180.0000.00919.91
8.1.170.0060.00321.06
8.1.160.0090.00023.83
8.1.150.0030.00620.75
8.1.140.0000.00919.83
8.1.130.0030.00720.18
8.1.120.0030.00620.03
8.1.110.0040.00419.84
8.1.100.0040.00419.91
8.1.90.0040.00419.84
8.1.80.0000.00919.80
8.1.70.0080.00019.77
8.1.60.0000.01119.90
8.1.50.0000.00919.86
8.1.40.0030.01019.79
8.1.30.0090.00020.23
8.1.20.0030.00620.08
8.1.10.0030.00620.16
8.1.00.0060.00319.89
8.0.300.0000.00819.22
8.0.290.0030.00619.13
8.0.280.0030.00520.24
8.0.270.0030.00519.70
8.0.260.0000.00719.64
8.0.250.0030.00619.41
8.0.240.0000.00819.30
8.0.230.0000.00819.37
8.0.220.0000.00819.29
8.0.210.0000.00819.26
8.0.200.0000.00819.38
8.0.190.0070.00319.33
8.0.180.0030.00619.26
8.0.170.0030.00719.31
8.0.160.0040.00419.12
8.0.150.0080.00019.19
8.0.140.0000.00819.29
8.0.130.0000.00513.37
8.0.120.0060.00319.36
8.0.110.0030.00619.49
8.0.100.0060.00319.39
8.0.90.0030.00619.27
8.0.80.0030.01419.47
8.0.70.0030.00619.41
8.0.60.0000.00819.49
8.0.50.0080.00019.23
8.0.30.0100.01219.76
8.0.20.0110.01119.71
8.0.10.0040.00419.43
8.0.00.0130.01319.13
7.4.330.0000.00515.08
7.4.320.0030.00619.02
7.4.300.0000.00819.04
7.4.290.0030.00619.07
7.4.280.0030.00618.98
7.4.270.0030.00619.04
7.4.260.0120.00619.07
7.4.250.0000.00918.95
7.4.240.0040.00419.03
7.4.230.0040.00419.07
7.4.220.0160.01019.02
7.4.210.0070.01018.95
7.4.200.0000.00818.92
7.4.160.0060.01318.83
7.4.150.0030.01918.98
7.4.140.0100.01318.84
7.4.130.0080.01618.85
7.4.120.0100.01018.83
7.4.110.0080.01218.67
7.4.100.0150.01218.77
7.4.90.0070.01418.83
7.4.80.0160.01019.39
7.4.70.0110.00818.93
7.4.60.0030.01518.88
7.4.50.0090.00018.93
7.4.40.0080.01118.86
7.4.30.0130.01318.76
7.4.10.0060.01618.99
7.4.00.0070.01118.06
7.3.330.0000.00813.20
7.3.320.0000.00613.16
7.3.310.0030.00518.88
7.3.300.0050.00318.73
7.3.290.0110.00918.76
7.3.280.0100.01318.83
7.3.270.0120.00918.87
7.3.260.0140.01418.80
7.3.250.0080.01218.98
7.3.240.0100.01018.93
7.3.230.0130.01318.88
7.3.210.0070.01718.91
7.3.200.0100.01018.73
7.3.190.0140.00719.08
7.3.180.0000.01818.83
7.3.170.0150.01118.75
7.3.160.0070.01518.82
7.3.130.0030.01718.80
7.3.120.0130.01018.93
7.3.110.0060.01018.70
7.3.100.0070.01118.84
7.3.90.0100.00718.48
7.3.80.0040.01418.91
7.3.70.0110.00718.68
7.3.60.0060.00918.88
7.3.50.0040.01518.73
7.3.40.0160.00318.82
7.3.30.0060.00618.77
7.3.20.0070.01020.39
7.3.10.0120.00620.39
7.3.00.0030.01420.42
7.2.330.0100.01019.32
7.2.320.0100.01019.07
7.2.310.0120.01519.26
7.2.300.0060.01618.69
7.2.290.0060.01619.43
7.2.260.0110.01119.23
7.2.250.0060.01318.83
7.2.240.0090.00618.96
7.2.230.0120.00618.81
7.2.220.0110.00419.23
7.2.210.0030.01618.88
7.2.200.0060.00918.97
7.2.190.0060.01218.97
7.2.180.0000.01819.07
7.2.170.0060.01318.95
7.2.160.0000.02018.99
7.2.150.0060.01220.75
7.2.140.0000.01520.58
7.2.130.0100.00720.63
7.2.120.0120.00920.70
7.2.110.0070.01020.51
7.2.100.0000.01420.57
7.2.90.0060.01020.82
7.2.80.0060.00620.81
7.2.70.0030.01420.76
7.2.60.0050.01219.94
7.2.50.0090.00920.87
7.2.40.0070.01320.77
7.2.30.0090.00920.64
7.2.20.0130.00620.78
7.2.10.0100.00720.65
7.2.00.0080.00821.40
7.1.330.0060.00919.55
7.1.320.0060.01019.42
7.1.310.0000.01719.57
7.1.300.0110.00419.45
7.1.290.0040.00819.82
7.1.280.0070.00719.66
7.1.270.0120.00019.66
7.1.260.0000.01719.55
7.1.250.0060.00619.71
7.1.240.0120.00919.52
7.1.230.0030.00819.57
7.1.220.0040.01119.63
7.1.210.0100.00719.57
7.1.200.0020.01018.66
7.1.190.0030.01519.65
7.1.180.0080.01219.45
7.1.170.0030.01519.54
7.1.160.0040.00819.69
7.1.150.0090.00619.67
7.1.140.0070.01119.54
7.1.130.0030.01319.49
7.1.120.0030.01319.70
7.1.110.0060.01619.62
7.1.100.0070.00720.11
7.1.90.0050.00919.76
7.1.80.0040.00819.73
7.1.70.0080.00719.47
7.1.60.0080.01419.86
7.1.50.0070.01219.38
7.1.40.0040.00819.84
7.1.30.0100.00319.76
7.1.20.0060.00919.51
7.1.10.0030.01119.79
7.1.00.0040.04222.39
7.0.330.0000.01419.47
7.0.320.0070.00719.13
7.0.310.0030.00619.52
7.0.300.0130.00619.30
7.0.290.0120.00419.29
7.0.280.0070.01419.36
7.0.270.0120.00619.32
7.0.260.0060.01019.33
7.0.250.0070.01019.45
7.0.240.0040.01519.51
7.0.230.0030.01019.27
7.0.220.0000.01519.46
7.0.210.0110.00619.26
7.0.200.0030.01019.44
7.0.190.0090.00919.55
7.0.180.0040.01119.38
7.0.170.0060.00919.41
7.0.160.0060.00619.44
7.0.150.0060.00919.52
7.0.140.0000.01119.32
7.0.130.0090.00619.37
7.0.120.0060.01219.30
7.0.110.0060.01019.29
7.0.100.0090.00319.50
7.0.90.0030.00919.27
7.0.80.0030.01319.23
7.0.70.0080.01219.48
7.0.60.0120.04521.70
7.0.50.0140.03918.69
7.0.40.0060.04919.85
7.0.30.0170.04819.92
7.0.20.0180.04619.93
7.0.10.0070.04919.77
7.0.00.0100.04419.74
5.6.400.0000.01818.16
5.6.390.0000.01418.11
5.6.380.0000.01318.32
5.6.370.0090.00618.23
5.6.360.0060.01018.29
5.6.350.0070.01018.34
5.6.340.0070.01418.50
5.6.330.0000.01118.50
5.6.320.0060.01518.51
5.6.310.0070.01318.13
5.6.300.0070.01018.20
5.6.290.0030.01618.52
5.6.280.0060.03620.71
5.6.270.0130.00318.29
5.6.260.0060.01518.52
5.6.250.0060.00618.41
5.6.240.0100.00718.49
5.6.230.0000.01418.42
5.6.220.0070.01018.21
5.6.210.0090.04720.54
5.6.200.0040.03218.18
5.6.190.0080.02620.50
5.6.180.0230.04620.65
5.6.170.0170.04420.51
5.6.160.0080.02520.50
5.6.150.0100.04518.29
5.6.140.0030.04818.22
5.6.130.0070.04318.37
5.6.120.0080.04520.86
5.6.110.0080.04720.67
5.6.100.0080.04320.75
5.6.90.0090.04820.81
5.6.80.0030.03120.51
5.6.70.0070.01418.36
5.6.60.0080.00418.23
5.6.50.0030.01318.41
5.6.40.0040.01118.18
5.6.30.0000.01518.30
5.6.20.0120.00618.21
5.6.10.0100.00718.23
5.6.00.0140.00418.20
5.5.380.0030.00718.13
5.5.370.0090.00918.32
5.5.360.0030.01518.23
5.5.350.0170.02820.64
5.5.340.0110.04218.28
5.5.330.0140.04120.50
5.5.320.0080.04420.44
5.5.310.0170.04120.39
5.5.300.0100.03818.03
5.5.290.0080.04518.20
5.5.280.0030.04820.84
5.5.270.0050.05020.62
5.5.260.0080.04320.61
5.5.250.0020.05420.51
5.5.240.0120.02220.21
5.5.230.0120.00618.30
5.5.220.0110.01118.27
5.5.210.0070.01418.16
5.5.200.0090.01118.06
5.5.190.0130.00817.98
5.5.180.0090.00918.20
5.5.170.0040.01318.23
5.5.160.0100.00718.32
5.5.150.0070.01118.46
5.5.140.0080.01117.98
5.5.130.0100.01018.23
5.5.120.0000.01018.10
5.5.110.0130.00318.31
5.5.100.0090.00918.14
5.5.90.0030.01418.20
5.5.80.0030.01018.06
5.5.70.0090.00618.11
5.5.60.0090.00618.37
5.5.50.0070.01018.16
5.5.40.0100.00618.28
5.5.30.0090.00918.09
5.5.20.0030.01318.30
5.5.10.0060.00918.04
5.5.00.0070.01118.29
5.4.450.0120.03216.80
5.4.440.0160.02616.92
5.4.430.0130.03316.90
5.4.420.0120.03016.88
5.4.410.0080.03016.93
5.4.400.0210.02216.86
5.4.390.0140.02916.67
5.4.380.0100.03216.82
5.4.370.0170.02516.67
5.4.360.0110.03416.67
5.4.350.0130.02816.66
5.4.340.0130.03616.79
5.4.330.0070.00712.30
5.4.320.0240.02316.78
5.4.310.0160.03016.78
5.4.300.0100.03116.69
5.4.290.0170.03116.66
5.4.280.0100.03116.81
5.4.270.0160.03516.67
5.4.260.0150.02516.81
5.4.250.0140.02716.66
5.4.240.0130.03616.81
5.4.230.0120.03116.58
5.4.220.0150.03316.82
5.4.210.0200.03116.75
5.4.200.0100.03016.69
5.4.190.0110.03316.77
5.4.180.0150.02916.81
5.4.170.0100.03216.71
5.4.160.0090.03216.86
5.4.150.0090.03716.58
5.4.140.0100.03015.39
5.4.130.0080.03315.39
5.4.120.0130.03015.45
5.4.110.0120.02815.42
5.4.100.0080.03115.60
5.4.90.0170.02215.47
5.4.80.0100.03715.29
5.4.70.0080.02215.45
5.4.60.0120.02115.51
5.4.50.0150.03815.33
5.4.40.0170.01715.38
5.4.30.0150.01715.39
5.4.20.0100.02715.40
5.4.10.0250.02815.45
5.4.00.0000.00812.30

preferences:
65.13 ms | 401 KiB | 5 Q