3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "\n".'-- 10000 JPY --'."\n"; $fmt = new NumberFormatter('ja-JP', NumberFormatter::CURRENCY); echo 'ja: '.$fmt->formatCurrency(10000, "JPY")."\n"; $fmt = new NumberFormatter('en-US', NumberFormatter::CURRENCY); echo 'en: '.$fmt->formatCurrency(10000, "JPY")."\n"; echo "\n".'-- 49.99 USD --'."\n"; $fmt = new NumberFormatter('ja-JP', NumberFormatter::CURRENCY); echo 'ja: '.$fmt->formatCurrency(49.99, "USD")."\n"; $fmt = new NumberFormatter('en-US', NumberFormatter::CURRENCY); echo 'en: '.$fmt->formatCurrency(49.99, "USD")."\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.60.0170.02021.07
8.3.50.0110.01819.17
8.3.40.0130.00320.17
8.3.30.0160.00320.21
8.3.20.0040.00421.79
8.3.10.0040.00425.03
8.3.00.0040.00425.20
8.2.180.0090.01919.38
8.2.170.0040.01122.96
8.2.160.0110.00421.89
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0080.00022.02
8.2.120.0050.00326.35
8.2.110.0060.00324.05
8.2.100.0090.00319.93
8.2.90.0040.00420.85
8.2.80.0030.00719.93
8.2.70.0000.00919.50
8.2.60.0040.00420.05
8.2.50.0000.00819.63
8.2.40.0060.00324.00
8.2.30.0060.00322.17
8.2.20.0060.00319.70
8.2.10.0050.00320.06
8.2.00.0000.00820.11
8.1.280.0070.02725.92
8.1.270.0070.01325.52
8.1.260.0000.01028.09
8.1.250.0080.00028.09
8.1.240.0130.00723.98
8.1.230.0140.00021.10
8.1.220.0030.00619.79
8.1.210.0030.00619.48
8.1.200.0050.00519.38
8.1.190.0060.00319.35
8.1.180.0200.00019.78
8.1.170.0060.00320.84
8.1.160.0080.00022.40
8.1.150.0000.00820.52
8.1.140.0040.00421.71
8.1.130.0040.00419.84
8.1.120.0000.00819.61
8.1.110.0030.00619.92
8.1.100.0040.00419.58
8.1.90.0030.00619.56
8.1.80.0040.00419.75
8.1.70.0060.00319.54
8.1.60.0000.00920.02
8.1.50.0100.00019.47
8.1.40.0040.00419.96
8.1.30.0060.00320.04
8.1.20.0040.00420.08
8.1.10.0030.00619.82
8.1.00.0030.00619.78
8.0.300.0110.00418.97
8.0.290.0000.00818.88
8.0.280.0080.00020.02
8.0.270.0080.00019.32
8.0.260.0000.00719.35
8.0.250.0000.00819.21
8.0.240.0000.00719.22
8.0.230.0000.00819.21
8.0.220.0060.00319.07
8.0.210.0030.00619.18
8.0.200.0000.00919.21
8.0.190.0000.00919.33
8.0.180.0000.00919.17
8.0.170.0080.00019.14
8.0.160.0030.00518.87
8.0.150.0030.00618.83
8.0.140.0000.00819.07
8.0.130.0060.00013.42
8.0.120.0040.00419.23
8.0.110.0080.00019.22
8.0.100.0000.00819.20
8.0.90.0000.00819.32
8.0.80.0060.01119.43
8.0.70.0040.00419.29
8.0.60.0080.00019.43
8.0.50.0040.00419.36
8.0.30.0070.01118.95
8.0.20.0090.01619.65
8.0.10.0000.00819.32
8.0.00.0140.00519.06
7.4.330.0020.00216.66
7.4.320.0040.00418.77
7.4.300.0030.00618.79
7.4.290.0040.00418.74
7.4.280.0000.01018.92
7.4.270.0040.00418.86
7.4.260.0000.00818.62
7.4.250.0000.00818.73
7.4.240.0020.00618.76
7.4.230.0050.00218.96
7.4.220.0090.00918.88
7.4.210.0140.01018.88
7.4.200.0040.00419.00
7.4.160.0070.01618.57
7.4.150.0040.02118.66
7.4.140.0100.01118.79
7.4.130.0120.00618.74
7.4.120.0080.01018.71
7.4.110.0130.00918.93
7.4.100.0100.01018.93
7.4.90.0090.01318.80
7.4.80.0090.01219.39
7.4.70.0000.01818.88
7.4.60.0000.02018.71
7.4.50.0060.01018.57
7.4.40.0130.00618.93
7.4.30.0150.00318.68
7.4.00.0090.00317.49
7.3.330.0060.00013.15
7.3.320.0000.00613.20
7.3.310.0040.00418.54
7.3.300.0040.00418.21
7.3.290.0060.01118.58
7.3.280.0090.00918.69
7.3.270.0090.00918.97
7.3.260.0040.01418.76
7.3.250.0100.00918.81
7.3.240.0110.00718.90
7.3.230.0120.00618.82
7.3.210.0230.03018.64
7.3.200.0130.00719.39
7.3.190.0180.00518.50
7.3.180.0120.01218.92
7.3.170.0060.01819.00
7.3.160.0070.01118.77
7.3.10.0110.00318.68
7.3.00.0060.00918.45
7.2.330.0100.01318.89
7.2.320.0100.01018.99
7.2.310.0070.01018.79
7.2.300.0070.01819.13
7.2.290.0100.01118.91
7.2.130.0140.00018.86
7.2.120.0070.00719.19
7.2.110.0000.01319.25
7.2.100.0000.01519.02
7.2.90.0060.01019.19
7.2.80.0090.00619.34
7.2.70.0060.00619.04
7.2.60.0080.00619.03
7.2.50.0070.01119.16
7.2.40.0030.01419.20
7.2.30.0120.00619.13
7.2.20.0000.01319.13
7.2.10.0060.00619.01
7.2.00.0090.00620.49
7.1.250.0040.01118.13
7.1.200.0090.00318.03
7.1.100.0040.00720.36
7.1.70.0050.00519.38
7.1.60.0070.02019.71
7.1.50.0110.01119.10
7.1.00.0000.08024.73
7.0.200.0000.00819.41
7.0.60.0200.07324.00
7.0.50.0030.07017.83
7.0.40.0200.03322.28
7.0.30.0230.06322.28
7.0.20.0400.07022.40
7.0.10.0170.04722.28
7.0.00.0100.08322.26
5.6.280.0070.05023.34
5.6.210.0070.06322.88
5.6.200.0070.04718.13
5.6.190.0070.08022.53
5.6.180.0200.08722.71
5.6.170.0170.06322.76
5.6.160.0130.06722.41
5.6.150.0100.08318.12
5.6.140.0030.05318.18
5.6.130.0130.08318.15
5.6.120.0100.04023.52
5.6.110.0100.08723.52
5.6.100.0000.08323.20
5.6.90.0070.07723.09
5.6.80.0070.06722.41
5.5.350.0100.08022.59
5.5.340.0100.07717.91
5.5.330.0200.07322.85
5.5.320.0130.04722.27
5.5.310.0300.04322.34
5.5.300.0070.04317.91
5.5.290.0070.04317.92
5.5.280.0000.05723.00
5.5.270.0100.04022.94
5.5.260.0100.07723.14
5.5.250.0170.04722.84
5.5.240.0000.08322.41

preferences:
45.17 ms | 401 KiB | 5 Q