3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '-- 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"; $fmt = new NumberFormatter('sv', NumberFormatter::CURRENCY); echo 'sv: '.$fmt->formatCurrency(10000, "JPY")."\n"; echo '-- 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"; $fmt = new NumberFormatter('sv', NumberFormatter::CURRENCY); echo 'sv: '.$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.40.0100.00520.47
8.3.30.0120.00420.47
8.3.20.0030.00521.99
8.3.10.0050.00323.58
8.3.00.0030.00525.40
8.2.170.0100.00722.96
8.2.160.0040.01122.32
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0090.00022.07
8.2.120.0050.00326.35
8.2.110.0040.00723.95
8.2.100.0060.00620.73
8.2.90.0040.00419.75
8.2.80.0030.00619.88
8.2.70.0060.00320.18
8.2.60.0030.00720.47
8.2.50.0080.00320.00
8.2.40.0140.00022.70
8.2.30.0090.00020.91
8.2.20.0070.00320.00
8.2.10.0000.00820.45
8.2.00.0000.00920.40
8.1.270.0120.00625.77
8.1.260.0030.00728.09
8.1.250.0080.00028.09
8.1.240.0060.00325.66
8.1.230.0150.00921.13
8.1.220.0040.00419.91
8.1.210.0060.00319.60
8.1.200.0140.00819.38
8.1.190.0030.00619.36
8.1.180.0030.00719.78
8.1.170.0030.00621.04
8.1.160.0000.00820.78
8.1.150.0040.00420.66
8.1.140.0000.01121.84
8.1.130.0000.00820.00
8.1.120.0040.00419.80
8.1.110.0040.00419.66
8.1.100.0030.00519.61
8.1.90.0030.00619.71
8.1.80.0030.00619.84
8.1.70.0030.00519.91
8.1.60.0040.00419.88
8.1.50.0040.00719.63
8.1.40.0000.00820.02
8.1.30.0030.00620.32
8.1.20.0030.00620.30
8.1.10.0000.00919.95
8.1.00.0000.00819.91
8.0.300.0100.00021.23
8.0.290.0000.00819.00
8.0.280.0080.00020.16
8.0.270.0000.00819.58
8.0.260.0020.00519.45
8.0.250.0000.00819.29
8.0.240.0050.00519.17
8.0.230.0030.00519.27
8.0.220.0040.00419.24
8.0.210.0000.00819.14
8.0.200.0090.00019.20
8.0.190.0030.00619.41
8.0.180.0000.00919.29
8.0.170.0060.00319.20
8.0.160.0040.00419.05
8.0.150.0040.00419.21
8.0.140.0000.00819.23
8.0.130.0030.00313.39
8.0.120.0030.00619.28
8.0.110.0030.00619.55
8.0.100.0030.00619.35
8.0.90.0000.00819.45
8.0.80.0100.00719.51
8.0.70.0030.00619.13
8.0.60.0040.00419.28
8.0.50.0050.00319.39
8.0.30.0120.00719.57
8.0.20.0130.01019.57
8.0.10.0000.00819.46
8.0.00.0090.01219.21
7.4.330.0050.00016.82
7.4.320.0000.00718.86
7.4.300.0090.00018.96
7.4.290.0030.00518.90
7.4.280.0070.00318.88
7.4.270.0000.01018.90
7.4.260.0080.01118.72
7.4.250.0000.00918.78
7.4.240.0020.00618.85
7.4.230.0000.00818.98
7.4.220.0060.01818.97
7.4.210.0110.01118.94
7.4.200.0000.00818.64
7.4.160.0120.00618.87
7.4.150.0090.01118.77
7.4.140.0100.01218.82
7.4.130.0090.01118.73
7.4.120.0070.01518.84
7.4.110.0090.01618.68
7.4.100.0060.01818.81
7.4.90.0160.00318.80
7.4.80.0090.01019.39
7.4.70.0090.00918.89
7.4.60.0100.01318.80
7.4.50.0070.01118.77
7.4.40.0030.01718.93
7.4.30.0100.01018.67
7.4.00.0070.01117.46
7.3.330.0060.00013.20
7.3.320.0030.00313.12
7.3.310.0050.00318.73
7.3.300.0080.00018.45
7.3.290.0100.00918.61
7.3.280.0110.01018.80
7.3.270.0130.00619.09
7.3.260.0120.00618.63
7.3.250.0100.01118.93
7.3.240.0060.01218.99
7.3.230.0090.01018.80
7.3.210.0140.00518.55
7.3.200.0040.02019.39
7.3.190.0130.01318.78
7.3.180.0140.00319.12
7.3.170.0120.00618.86
7.3.160.0070.01018.61
7.3.120.0140.00717.20
7.3.110.0100.01017.48
7.3.100.0090.00617.30
7.3.90.0100.00717.24
7.3.80.0060.00917.20
7.3.70.0100.00617.19
7.3.60.0060.00917.08
7.3.50.0100.01017.13
7.3.40.0000.01417.19
7.3.30.0040.00817.20
7.3.20.0130.00318.60
7.3.10.0060.00618.69
7.3.00.0080.00818.73
7.2.330.0100.01019.13
7.2.320.0140.00719.08
7.2.310.0100.00718.55
7.2.300.0170.01119.15
7.2.290.0110.00819.07
7.2.250.0030.01717.60
7.2.240.0130.01017.43
7.2.230.0110.00417.33
7.2.220.0040.01217.42
7.2.210.0030.01317.71
7.2.200.0130.00017.19
7.2.190.0030.01217.29
7.2.180.0070.01017.26
7.2.170.0110.00317.45
7.2.130.0070.00419.31
7.2.120.0110.00419.10
7.2.110.0030.00719.26
7.2.100.0000.00919.23
7.2.90.0070.00719.27
7.2.80.0040.01119.28
7.2.70.0040.01419.18
7.2.60.0130.00919.11
7.2.50.0030.00719.20
7.2.40.0090.00919.29
7.2.30.0070.00719.29
7.2.20.0120.00819.19
7.2.10.0100.00719.39
7.2.00.0050.01120.79
7.1.330.0040.01117.93
7.1.320.0090.00918.07
7.1.310.0040.00718.13
7.1.300.0040.01118.02
7.1.290.0040.01517.80
7.1.280.0030.01017.75
7.1.270.0000.00917.95
7.1.260.0000.01218.27
7.1.250.0060.00918.07
7.1.200.0150.00818.10
7.1.100.0100.01020.32
7.1.70.0070.01119.77
7.1.60.0040.02219.82
7.1.50.0110.00419.50
7.1.00.0070.07725.07
7.0.200.0000.00819.43
7.0.60.0070.08324.13
7.0.50.0030.04717.95
7.0.40.0070.07321.98
7.0.30.0300.05722.18
7.0.20.0300.05022.34
7.0.10.0200.08022.38
7.0.00.0070.09022.42
5.6.280.0000.03723.44
5.6.210.0070.08723.07
5.6.200.0070.03718.21
5.6.190.0130.08022.64
5.6.180.0130.05022.43
5.6.170.0300.07722.78
5.6.160.0100.05322.66
5.6.150.0030.04018.22
5.6.140.0070.07718.17
5.6.130.0000.05718.14
5.6.120.0070.05723.30
5.6.110.0070.07723.09
5.6.100.0000.07323.32
5.6.90.0100.06323.64
5.6.80.0030.08022.88
5.5.350.0070.08322.64
5.5.340.0100.08017.99
5.5.330.0030.07722.64
5.5.320.0170.04722.45
5.5.310.0230.05322.26
5.5.300.0000.07318.02
5.5.290.0130.05318.02
5.5.280.0070.08323.27
5.5.270.0130.07723.12
5.5.260.0130.08023.06
5.5.250.0030.09022.68
5.5.240.0170.07722.24

preferences:
35.1 ms | 400 KiB | 5 Q