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, '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.0140.02719.75
8.3.50.0180.01522.65
8.3.40.0140.01020.79
8.3.30.0060.01020.70
8.3.20.0040.00422.29
8.3.10.0060.00325.66
8.3.00.0070.00321.93
8.2.180.0130.01619.38
8.2.170.0060.01022.96
8.2.160.0130.00622.10
8.2.150.0090.00024.18
8.2.140.0160.00024.66
8.2.130.0060.00326.16
8.2.120.0060.00320.13
8.2.110.0090.00324.25
8.2.100.0100.00319.88
8.2.90.0070.00321.14
8.2.80.0040.00419.88
8.2.70.0030.00719.88
8.2.60.0030.00720.05
8.2.50.0050.00520.00
8.2.40.0030.00621.89
8.2.30.0030.00622.31
8.2.20.0030.00620.04
8.2.10.0030.00620.28
8.2.00.0060.00320.28
8.1.280.0190.01925.92
8.1.270.0030.00622.20
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0120.00024.21
8.1.230.0060.00619.73
8.1.220.0070.00320.14
8.1.210.0030.00619.73
8.1.200.0000.01019.73
8.1.190.0030.00619.50
8.1.180.0030.00619.68
8.1.170.0030.00621.02
8.1.160.0000.01123.88
8.1.150.0030.00620.68
8.1.140.0030.00619.83
8.1.130.0040.00819.99
8.1.120.0060.00319.96
8.1.110.0000.00919.91
8.1.100.0000.00819.84
8.1.90.0090.00019.84
8.1.80.0030.00619.90
8.1.70.0000.00819.89
8.1.60.0030.00719.97
8.1.50.0000.01019.90
8.1.40.0140.00019.83
8.1.30.0030.00720.27
8.1.20.0000.00920.20
8.1.10.0030.00720.08
8.1.00.0030.00619.96
8.0.300.0060.00319.22
8.0.290.0060.00319.00
8.0.280.0030.00520.17
8.0.270.0040.00419.50
8.0.260.0040.00419.68
8.0.250.0000.00819.38
8.0.240.0050.00319.28
8.0.230.0060.00319.38
8.0.220.0000.00819.30
8.0.210.0040.00419.24
8.0.200.0070.00019.26
8.0.190.0000.00919.39
8.0.180.0000.00819.35
8.0.170.0030.00719.28
8.0.160.0030.00619.25
8.0.150.0040.00619.09
8.0.140.0060.00619.28
8.0.130.0000.00513.43
8.0.120.0090.00019.45
8.0.110.0030.00619.54
8.0.100.0080.00019.45
8.0.90.0040.00419.48
8.0.80.0150.00319.59
8.0.70.0040.00419.46
8.0.60.0000.00819.33
8.0.50.0060.00319.43
8.0.30.0120.00919.75
8.0.20.0130.00919.68
8.0.10.0040.00419.46
8.0.00.0140.01019.19
7.4.330.0000.00515.08
7.4.320.0040.00419.18
7.4.300.0000.00719.07
7.4.290.0090.00319.07
7.4.280.0040.00419.07
7.4.270.0030.00618.85
7.4.260.0050.00519.02
7.4.250.0060.00318.98
7.4.240.0050.00419.08
7.4.230.0080.00019.16
7.4.220.0150.01118.99
7.4.210.0030.01419.11
7.4.200.0000.00819.05
7.4.160.0040.01419.11
7.4.150.0170.00318.77
7.4.140.0160.01119.13
7.4.130.0100.01018.72
7.4.120.0100.00918.94
7.4.110.0070.01418.91
7.4.100.0170.00918.88
7.4.90.0190.00618.89
7.4.80.0100.01019.39
7.4.70.0030.01618.94
7.4.60.0130.00618.93
7.4.50.0000.00918.75
7.4.40.0090.00918.75
7.4.30.0120.00919.02
7.4.10.0120.00817.08
7.4.00.0080.01317.34
7.3.330.0070.00013.23
7.3.320.0030.00313.18
7.3.310.0030.00518.84
7.3.300.0030.00518.79
7.3.290.0090.00818.75
7.3.280.0110.01018.81
7.3.270.0070.01418.79
7.3.260.0060.02219.05
7.3.250.0080.01119.00
7.3.240.0080.01219.25
7.3.230.0140.00918.85
7.3.210.0160.00819.05
7.3.200.0170.00718.83
7.3.190.0150.00318.70
7.3.180.0060.01218.77
7.3.170.0140.00618.85
7.3.160.0030.01619.03
7.3.130.0110.01417.12
7.3.120.0170.00916.89
7.3.110.0100.01717.13
7.3.100.0060.00917.04
7.3.90.0120.00417.55
7.3.80.0100.00717.40
7.3.70.0070.00717.24
7.3.60.0000.01517.29
7.3.50.0090.00617.37
7.3.40.0130.00716.85
7.3.30.0070.01117.21
7.3.20.0100.00618.59
7.3.10.0080.00718.53
7.3.00.0070.00818.91
7.2.330.0030.01718.98
7.2.320.0100.01318.99
7.2.310.0120.00619.09
7.2.300.0100.01019.20
7.2.290.0100.01318.90
7.2.260.0130.01317.40
7.2.250.0110.01417.50
7.2.240.0070.00717.43
7.2.230.0030.01317.20
7.2.220.0040.01217.44
7.2.210.0080.00417.37
7.2.200.0090.00917.45
7.2.190.0070.00717.44
7.2.180.0090.01217.37
7.2.170.0060.00817.16
7.2.160.0060.00917.64
7.2.150.0040.01118.89
7.2.140.0160.00318.95
7.2.130.0090.00919.07
7.2.120.0050.01019.32
7.2.110.0070.01019.08
7.2.100.0090.00819.08
7.2.90.0110.00719.19
7.2.80.0080.01019.14
7.2.70.0040.01519.21
7.2.60.0030.01219.17
7.2.50.0100.00919.22
7.2.40.0110.00919.00
7.2.30.0050.01319.06
7.2.20.0070.01019.11
7.2.10.0090.00919.12
7.2.00.0070.01019.87
7.1.330.0000.01618.02
7.1.320.0040.01418.05
7.1.310.0040.00718.11
7.1.300.0060.00617.92
7.1.290.0090.00717.75
7.1.280.0070.00718.05
7.1.270.0030.00917.95
7.1.260.0080.00518.08
7.1.250.0120.00618.07
7.1.240.0060.00318.32
7.1.230.0070.00318.15
7.1.220.0040.01217.84
7.1.210.0040.00818.23
7.1.200.0040.01117.93
7.1.190.0000.01118.02
7.1.180.0030.01017.93
7.1.170.0040.00818.18
7.1.160.0080.00818.21
7.1.150.0060.00618.13
7.1.140.0080.00618.09
7.1.130.0030.00918.11
7.1.120.0040.01118.18
7.1.110.0030.01318.11
7.1.100.0070.01219.28
7.1.90.0040.01118.09
7.1.80.0060.00617.92
7.1.70.0050.01018.97
7.1.60.0030.01319.13
7.1.50.0080.00818.59
7.1.40.0040.01118.00
7.1.30.0040.01118.02
7.1.20.0070.01017.98
7.1.10.0030.01318.25
7.1.00.0070.03821.43
7.0.330.0030.01017.77
7.0.320.0100.00317.57
7.0.310.0000.01717.80
7.0.300.0000.01417.99
7.0.290.0100.00717.71
7.0.280.0040.00717.99
7.0.270.0140.00017.80
7.0.260.0100.00717.69
7.0.250.0100.00718.00
7.0.240.0060.00617.71
7.0.230.0000.01417.71
7.0.220.0060.00917.96
7.0.210.0040.01117.69
7.0.200.0030.00818.62
7.0.190.0030.01217.90
7.0.180.0030.01017.64
7.0.170.0130.00317.71
7.0.160.0030.01017.88
7.0.150.0060.00617.53
7.0.140.0030.01217.93
7.0.130.0060.00617.82
7.0.120.0060.00617.80
7.0.110.0030.00917.58
7.0.100.0000.01617.61
7.0.90.0060.00317.77
7.0.80.0040.01117.57
7.0.70.0060.00617.48
7.0.60.0030.05420.01
7.0.50.0100.03317.88
7.0.40.0120.04319.11
7.0.30.0100.04819.25
7.0.20.0240.03519.06
7.0.10.0110.03519.15
7.0.00.0050.04818.95
5.6.400.0090.00616.94
5.6.390.0170.00016.71
5.6.380.0030.01316.67
5.6.370.0070.01416.60
5.6.360.0030.01316.98
5.6.350.0100.00616.68
5.6.340.0030.00916.87
5.6.330.0040.01216.39
5.6.320.0000.01216.61
5.6.310.0110.00417.09
5.6.300.0000.01416.68
5.6.290.0040.01516.86
5.6.280.0070.03720.02
5.6.270.0030.01216.86
5.6.260.0000.01516.65
5.6.250.0030.00716.56
5.6.240.0060.00916.57
5.6.230.0070.01116.90
5.6.220.0100.00316.73
5.6.210.0050.03219.78
5.6.200.0050.04717.51
5.6.190.0070.04419.52
5.6.180.0290.03819.77
5.6.170.0180.02619.77
5.6.160.0050.04019.66
5.6.150.0070.02917.58
5.6.140.0050.03717.39
5.6.130.0070.04317.40
5.6.120.0160.04019.86
5.6.110.0170.03820.08
5.6.100.0100.04619.99
5.6.90.0110.04020.04
5.6.80.0050.04319.49
5.6.70.0100.00316.66
5.6.60.0060.00916.62
5.6.50.0070.00716.58
5.6.40.0030.00716.75
5.6.30.0000.01116.56
5.6.20.0070.00716.65
5.6.10.0080.00316.67
5.6.00.0030.00716.74
5.5.380.0030.01316.70
5.5.370.0100.00716.68
5.5.360.0060.01216.65
5.5.350.1980.02719.57
5.5.340.0030.03517.35
5.5.330.0110.04019.77
5.5.320.0220.04319.64
5.5.310.0120.02819.38
5.5.300.0040.04617.30
5.5.290.0120.02017.39
5.5.280.0100.02819.66
5.5.270.0130.02820.01
5.5.260.0050.05019.64
5.5.250.0030.02920.04
5.5.240.0120.04319.46
5.5.230.0030.01016.80
5.5.220.0080.00816.54
5.5.210.0080.00816.45
5.5.200.0100.00316.61
5.5.190.0090.00916.47
5.5.180.0070.00716.76
5.5.170.0060.01016.75
5.5.160.0070.01016.45
5.5.150.0130.00716.75
5.5.140.0070.01116.54
5.5.130.0070.01416.74
5.5.120.0060.01116.44
5.5.110.0070.01116.76
5.5.100.0000.01716.55
5.5.90.0040.01116.61
5.5.80.0070.01016.63
5.5.70.0070.00716.11
5.5.60.0040.00816.31
5.5.50.0100.00316.34
5.5.40.0000.00916.59
5.5.30.0030.01016.71
5.5.20.0070.00716.62
5.5.10.0030.01116.53
5.5.00.0080.00816.70
5.4.450.0250.03716.55
5.4.440.0200.02716.50
5.4.430.0170.03116.54
5.4.420.0150.04216.52
5.4.410.0240.02216.34
5.4.400.0210.03316.36
5.4.390.0180.04116.31
5.4.380.0220.03216.44
5.4.370.0190.03416.44
5.4.360.0240.02716.44
5.4.350.0230.03716.31
5.4.340.0290.01816.34
5.4.330.0060.00311.61
5.4.320.0270.03016.25
5.4.310.0220.03216.24
5.4.300.0300.02716.43
5.4.290.0220.02016.42
5.4.280.0180.03516.37
5.4.270.0230.03716.33
5.4.260.0270.01716.33
5.4.250.0200.02116.37
5.4.240.0230.02316.31
5.4.230.0220.02316.24
5.4.220.0170.02716.39
5.4.210.0230.02716.44
5.4.200.0180.02516.24
5.4.190.0240.01816.35
5.4.180.0170.02516.29
5.4.170.0290.03016.36
5.4.160.0180.03216.32
5.4.150.0250.02416.35
5.4.140.0220.03015.05
5.4.130.0220.02215.05
5.4.120.0260.03515.02
5.4.110.0180.02715.07
5.4.100.0240.03115.05
5.4.90.0240.02615.07
5.4.80.0250.02715.09
5.4.70.0030.01011.61
5.4.60.0040.00711.61
5.4.50.0070.00311.61
5.4.40.0000.01011.61
5.4.30.0000.01011.61
5.4.20.0000.00611.61
5.4.10.0030.00611.61
5.4.00.0040.00811.61

preferences:
42.92 ms | 401 KiB | 5 Q