3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '-- 10000 JPY --'."\n"; $fmt = new NumberFormatter('ja_JP', NumberFormatter::CURRENCY); echo 'ja_JP: '.$fmt->formatCurrency(10000, "JPY")."\n"; $fmt = new NumberFormatter('en_US', NumberFormatter::CURRENCY); echo 'en_US: '.$fmt->formatCurrency(10000, "JPY")."\n"; echo '-- 49.99 USD --'."\n"; $fmt = new NumberFormatter('ja_JP', NumberFormatter::CURRENCY); echo 'ja_JP: '.$fmt->formatCurrency(49.99, "USD")."\n"; $fmt = new NumberFormatter('en_US', NumberFormatter::CURRENCY); echo 'en_US: '.$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.0070.03119.29
8.3.50.0110.02422.52
8.3.40.0080.00820.29
8.3.30.0040.01120.21
8.3.20.0080.00021.84
8.3.10.0030.00523.43
8.3.00.0040.00425.14
8.2.180.0140.01421.41
8.2.170.0150.00420.66
8.2.160.0120.00922.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0080.00021.89
8.2.120.0000.00826.35
8.2.110.0030.00722.02
8.2.100.0070.00720.05
8.2.90.0030.00620.84
8.2.80.0060.00319.93
8.2.70.0090.00319.63
8.2.60.0000.00820.05
8.2.50.0030.00619.63
8.2.40.0000.01022.08
8.2.30.0050.00322.18
8.2.20.0000.00819.90
8.2.10.0030.00520.26
8.2.00.0040.00420.19
8.1.280.0230.01325.92
8.1.270.0100.01025.57
8.1.260.0070.00328.09
8.1.250.0040.00428.09
8.1.240.0100.00025.58
8.1.230.0060.00621.13
8.1.220.0050.00319.90
8.1.210.0030.00619.48
8.1.200.0100.00019.25
8.1.190.0030.00619.35
8.1.180.0030.00619.65
8.1.170.0000.00920.71
8.1.160.0000.00822.27
8.1.150.0040.00420.56
8.1.140.0030.00621.61
8.1.130.0000.00719.77
8.1.120.0030.00519.66
8.1.110.0040.00419.44
8.1.100.0040.00419.82
8.1.90.0000.00819.73
8.1.80.0000.00819.92
8.1.70.0030.00619.86
8.1.60.0000.00819.98
8.1.50.0030.00619.54
8.1.40.0090.00019.95
8.1.30.0060.00319.94
8.1.20.0000.00920.22
8.1.10.0000.00819.80
8.1.00.0080.00019.63
8.0.300.0040.00419.04
8.0.290.0060.00319.00
8.0.280.0040.00420.12
8.0.270.0000.00819.38
8.0.260.0090.00319.26
8.0.250.0030.00519.21
8.0.240.0040.00419.14
8.0.230.0000.00819.23
8.0.220.0050.00319.07
8.0.210.0100.00019.02
8.0.200.0080.00019.24
8.0.190.0030.00619.19
8.0.180.0050.00319.17
8.0.170.0000.00819.18
8.0.160.0090.00018.88
8.0.150.0000.00818.94
8.0.140.0000.00819.00
8.0.130.0030.00313.38
8.0.120.0060.00319.17
8.0.110.0040.00419.38
8.0.100.0040.00419.38
8.0.90.0030.00519.30
8.0.80.0090.01219.38
8.0.70.0000.00819.05
8.0.60.0000.00819.33
8.0.50.0030.00619.01
8.0.30.0110.00519.43
8.0.20.0100.01119.61
8.0.10.0000.00919.39
8.0.00.0110.00918.95
7.4.330.0000.00516.67
7.4.320.0050.00318.71
7.4.300.0000.01018.70
7.4.290.0000.00718.86
7.4.280.0000.01018.79
7.4.270.0070.00018.89
7.4.260.0040.01518.71
7.4.250.0090.00018.79
7.4.240.0060.00118.84
7.4.230.0040.00418.96
7.4.220.0090.01218.68
7.4.210.0120.00918.99
7.4.200.0030.00618.64
7.4.160.0140.01018.82
7.4.150.0170.00318.73
7.4.140.0190.00618.74
7.4.130.0150.00618.70
7.4.120.0110.00818.74
7.4.110.0080.01618.79
7.4.100.0150.01018.63
7.4.90.0120.00818.63
7.4.80.0100.00719.39
7.4.70.0030.01418.71
7.4.60.0100.00718.71
7.4.50.0100.00718.58
7.4.40.0180.00018.74
7.4.30.0100.01018.75
7.4.00.0070.01117.27
7.3.330.0000.00513.12
7.3.320.0050.00013.21
7.3.310.0050.00318.18
7.3.300.0040.00418.77
7.3.290.0040.01618.62
7.3.280.0110.00818.67
7.3.270.0120.00618.67
7.3.260.0100.01419.02
7.3.250.0090.01318.71
7.3.240.0060.01518.71
7.3.230.0110.01218.86
7.3.210.0090.01018.70
7.3.200.0170.01019.39
7.3.190.0060.01318.87
7.3.180.0140.00819.01
7.3.170.0150.00318.92
7.3.160.0060.01218.82
7.3.10.0160.00018.21
7.3.00.0170.00418.39
7.2.330.0050.01418.97
7.2.320.0340.01919.18
7.2.310.0030.01419.11
7.2.300.0090.01018.90
7.2.290.0030.01519.00
7.2.130.0210.00019.19
7.2.120.0160.00919.08
7.2.110.0150.00518.25
7.2.100.0200.00318.73
7.2.90.0160.00818.65
7.2.80.0090.01218.80
7.2.70.0100.01618.71
7.2.60.0190.00719.10
7.2.50.0090.01418.64
7.2.40.0120.00618.96
7.2.30.0120.00318.90
7.2.20.0160.00018.60
7.2.10.0100.01018.71
7.2.00.0080.00920.54
7.1.250.0110.00817.66
7.1.200.0000.01518.10
7.1.100.0060.00620.61
7.1.70.0040.00719.42
7.1.60.0000.02719.68
7.1.50.0070.01719.61
7.1.00.0070.07324.72
7.0.200.0050.00519.30
7.0.60.0100.06023.85
7.0.50.0070.05017.91
7.0.40.0070.08722.41
7.0.30.0200.04722.03
7.0.20.0400.07322.28
7.0.10.0100.04022.18
7.0.00.0100.05722.23
5.6.280.0030.03323.20
5.6.210.0170.04722.95
5.6.200.0030.04318.13
5.6.190.0130.06722.49
5.6.180.0330.07322.59
5.6.170.0270.08322.42
5.6.160.0170.08022.61
5.6.150.0000.04318.17
5.6.140.0170.07018.21
5.6.130.0100.07318.14
5.6.120.0030.07023.39
5.6.110.0230.06323.20
5.6.100.0030.04323.10
5.6.90.0130.06023.17
5.6.80.0030.05722.91
5.5.350.0070.05722.74
5.5.340.0030.06717.98
5.5.330.0070.08722.09
5.5.320.0570.07322.39
5.5.310.0370.07022.40
5.5.300.0070.04017.91
5.5.290.0070.08717.91
5.5.280.0030.08022.89
5.5.270.0070.04322.95
5.5.260.0130.08022.90
5.5.250.0170.07323.03
5.5.240.0030.03022.36

preferences:
49.02 ms | 401 KiB | 5 Q