3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "\n".'-- 10000 JPY --'."\n"; $fmt = new NumberFormatter('ja', NumberFormatter::CURRENCY); echo 'ja: '.$fmt->formatCurrency(10000, "JPY")."\n"; $fmt = new NumberFormatter('en', NumberFormatter::CURRENCY); echo 'en: '.$fmt->formatCurrency(10000, "JPY")."\n"; echo "\n".'-- 49.99 USD --'."\n"; $fmt = new NumberFormatter('ja', NumberFormatter::CURRENCY); echo 'ja: '.$fmt->formatCurrency(49.99, "USD")."\n"; $fmt = new NumberFormatter('en', NumberFormatter::CURRENCY); echo 'en: '.$fmt->formatCurrency(49.99, "USD")."\n"; echo "\n".'-- 49.99 CAD --'."\n"; $fmt = new NumberFormatter('ja', NumberFormatter::CURRENCY); echo 'ja: '.$fmt->formatCurrency(49.99, "CAD")."\n"; $fmt = new NumberFormatter('en', NumberFormatter::CURRENCY); echo 'en: '.$fmt->formatCurrency(49.99, "CAD")."\n";

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.0120.01521.09
8.3.60.0100.01721.11
8.3.50.0140.02122.57
8.3.40.0100.00620.19
8.3.30.0070.01420.17
8.3.20.0050.00321.79
8.3.10.0050.00325.11
8.3.00.0000.00825.14
8.2.190.0140.01419.25
8.2.180.0160.02319.63
8.2.170.0170.00022.96
8.2.160.0090.00622.02
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0090.00021.96
8.2.120.0040.00426.35
8.2.110.0030.00723.29
8.2.100.0060.00620.18
8.2.90.0060.00320.84
8.2.80.0030.00619.55
8.2.70.0070.00319.75
8.2.60.0040.00420.16
8.2.50.0030.00619.50
8.2.40.0050.00322.22
8.2.30.0040.00422.38
8.2.20.0080.00019.81
8.2.10.0050.00320.09
8.2.00.0030.00520.29
8.1.280.0070.02725.92
8.1.270.0070.01325.59
8.1.260.0040.00728.09
8.1.250.0000.00828.09
8.1.240.0060.00323.88
8.1.230.0080.00321.27
8.1.220.0040.00419.66
8.1.210.0090.00019.48
8.1.200.0000.01019.48
8.1.190.0000.00819.48
8.1.180.0100.00019.64
8.1.170.0060.00320.78
8.1.160.0000.00822.36
8.1.150.0040.00420.47
8.1.140.0030.00621.77
8.1.130.0030.00519.86
8.1.120.0000.00819.61
8.1.110.0040.00419.55
8.1.100.0090.00019.89
8.1.90.0000.00819.72
8.1.80.0040.00419.84
8.1.70.0050.00319.46
8.1.60.0040.00419.95
8.1.50.0000.00919.51
8.1.40.0030.00619.64
8.1.30.0000.00920.16
8.1.20.0030.00620.15
8.1.10.0030.00619.88
8.1.00.0040.00419.85
8.0.300.0030.00619.04
8.0.290.0040.00418.88
8.0.280.0000.00720.10
8.0.270.0030.00519.33
8.0.260.0040.00419.31
8.0.250.0000.00719.13
8.0.240.0000.00819.23
8.0.230.0000.00819.13
8.0.220.0040.00419.17
8.0.210.0000.00819.18
8.0.200.0000.00719.27
8.0.190.0030.00619.13
8.0.180.0000.00819.11
8.0.170.0090.00019.09
8.0.160.0050.00319.02
8.0.150.0040.00419.16
8.0.140.0030.00519.08
8.0.130.0000.00513.31
8.0.120.0030.00619.14
8.0.110.0080.00019.25
8.0.100.0090.00019.09
8.0.90.0030.00519.27
8.0.80.0000.01619.37
8.0.70.0050.00319.24
8.0.60.0000.00818.98
8.0.50.0000.00819.08
8.0.30.0110.01119.31
8.0.20.0120.01319.48
8.0.10.0040.00419.51
8.0.00.0090.01119.10
7.4.330.0050.00016.78
7.4.320.0070.00018.91
7.4.300.0030.00718.79
7.4.290.0060.00318.80
7.4.280.0070.00318.88
7.4.270.0040.00418.79
7.4.260.0000.00818.88
7.4.250.0030.00518.75
7.4.240.0050.00318.81
7.4.230.0000.00818.70
7.4.220.0030.01718.66
7.4.210.0120.00618.80
7.4.200.0040.00418.75
7.4.160.0200.00318.55
7.4.150.0140.01418.50
7.4.140.0140.00918.72
7.4.130.0160.00518.58
7.4.120.0110.00718.73
7.4.110.0090.01218.80
7.4.100.0130.00618.79
7.4.90.0090.01018.68
7.4.80.0090.00919.39
7.4.70.0030.01418.87
7.4.60.0060.01218.76
7.4.50.0090.00918.64
7.4.40.0200.00318.73
7.4.30.0120.00918.69
7.4.00.0070.01317.15
7.3.330.0000.00513.21
7.3.320.0000.00513.13
7.3.310.0080.00018.43
7.3.300.0040.00418.66
7.3.290.0100.00918.65
7.3.280.0100.01018.68
7.3.270.0120.00918.98
7.3.260.0100.01018.71
7.3.250.0100.01318.63
7.3.240.0040.01419.06
7.3.230.0090.00918.87
7.3.210.0100.01018.65
7.3.200.0120.01219.39
7.3.190.0070.01418.79
7.3.180.0090.01418.86
7.3.170.0090.00918.69
7.3.160.0030.01418.96
7.3.120.0080.01217.09
7.3.110.0050.01317.05
7.3.100.0100.00716.95
7.3.90.0050.00917.08
7.3.80.0100.00817.18
7.3.70.0070.01117.06
7.3.60.0090.00617.13
7.3.50.0050.01217.11
7.3.40.0070.00716.94
7.3.30.0020.01417.05
7.3.20.0060.00818.57
7.3.10.0090.00618.61
7.3.00.0030.00918.63
7.2.330.0100.01319.08
7.2.320.0130.00619.05
7.2.310.0070.01718.51
7.2.300.0060.02119.03
7.2.290.0100.01318.82
7.2.250.0080.01317.50
7.2.240.0060.01517.09
7.2.230.0040.00917.22
7.2.220.0080.00817.31
7.2.210.0080.00817.25
7.2.200.0070.00717.05
7.2.190.0030.01217.22
7.2.180.0060.00917.40
7.2.170.0060.00817.12
7.2.130.0040.00719.16
7.2.120.0090.00619.09
7.2.110.0030.00619.39
7.2.100.0000.01218.97
7.2.90.0040.00818.99
7.2.80.0110.00518.99
7.2.70.0040.00819.25
7.2.60.0060.00619.10
7.2.50.0070.00719.05
7.2.40.0030.00919.11
7.2.30.0080.00419.32
7.2.20.0080.00419.19
7.2.10.0090.00319.18
7.2.00.0050.00820.62
7.1.330.0080.00617.79
7.1.320.0080.00817.78
7.1.310.0060.00817.75
7.1.300.0050.00917.79
7.1.290.0080.00817.97
7.1.280.0090.00617.91
7.1.270.0090.00917.79
7.1.260.0110.00418.04
7.1.250.0090.00317.96
7.1.200.0060.00917.81
7.1.100.0060.00320.21
7.1.70.0000.01719.55
7.1.60.0130.01319.55
7.1.50.0100.01319.60
7.1.00.0030.08024.89
7.0.200.0000.00819.32
7.0.60.0130.08023.99
7.0.50.0070.08017.93
7.0.40.0030.08722.28
7.0.30.0270.04022.31
7.0.20.0400.07722.29
7.0.10.0030.08022.04
7.0.00.0030.04722.22
5.6.280.0030.05323.29
5.6.210.0070.05022.70
5.6.200.0070.03718.18
5.6.190.0030.06722.52
5.6.180.0200.07322.49
5.6.170.0170.05722.64
5.6.160.0030.08722.62
5.6.150.0130.07018.14
5.6.140.0130.07718.17
5.6.130.0030.09018.23
5.6.120.0070.09023.16
5.6.110.0100.08323.46
5.6.100.0000.07323.18
5.6.90.0100.04323.04
5.6.80.0030.08322.39
5.5.350.0130.07322.67
5.5.340.0100.07717.95
5.5.330.0030.04722.24
5.5.320.0200.04022.49
5.5.310.0270.07722.42
5.5.300.0030.05317.89
5.5.290.0100.06318.03
5.5.280.0000.07322.82
5.5.270.0000.08022.98
5.5.260.0100.08323.00
5.5.250.0030.07322.96
5.5.240.0070.08022.51

preferences:
68.09 ms | 401 KiB | 5 Q