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"; 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";

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.0100.01719.25
8.3.60.0100.01721.21
8.3.50.0120.02222.53
8.3.40.0130.00320.24
8.3.30.0040.01520.08
8.3.20.0030.00621.95
8.3.10.0040.00425.29
8.3.00.0000.00825.16
8.2.180.0140.01419.38
8.2.170.0130.00622.96
8.2.160.0070.00721.85
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00421.89
8.2.120.0040.00426.35
8.2.110.0090.00021.36
8.2.100.0110.00419.72
8.2.90.0090.00020.77
8.2.80.0070.00319.93
8.2.70.0060.00319.50
8.2.60.0040.00419.93
8.2.50.0040.00419.63
8.2.40.0040.00422.22
8.2.30.0040.00422.16
8.2.20.0070.00419.70
8.2.10.0030.00520.13
8.2.00.0040.00420.14
8.1.280.0190.01925.92
8.1.270.0100.00025.59
8.1.260.0000.00928.09
8.1.250.0030.00528.09
8.1.240.0000.01123.66
8.1.230.0090.00323.19
8.1.220.0030.00619.68
8.1.210.0030.00619.48
8.1.200.0000.00919.60
8.1.190.0060.00319.35
8.1.180.0030.00619.63
8.1.170.0030.00520.71
8.1.160.0040.00422.39
8.1.150.0000.00820.51
8.1.140.0050.00321.75
8.1.130.0040.00419.83
8.1.120.0000.00819.82
8.1.110.0030.00519.50
8.1.100.0050.00519.82
8.1.90.0000.00819.45
8.1.80.0080.00019.56
8.1.70.0000.00719.63
8.1.60.0030.00619.89
8.1.50.0060.00319.57
8.1.40.0050.00319.90
8.1.30.0030.00619.97
8.1.20.0000.00820.16
8.1.10.0040.00419.79
8.1.00.0040.00419.82
8.0.300.0030.00618.97
8.0.290.0050.00518.75
8.0.280.0040.00420.08
8.0.270.0000.00819.26
8.0.260.0000.00819.36
8.0.250.0040.00419.12
8.0.240.0000.00719.21
8.0.230.0040.00419.18
8.0.220.0030.00619.08
8.0.210.0000.00819.13
8.0.200.0050.00319.25
8.0.190.0030.00519.13
8.0.180.0000.00819.16
8.0.170.0030.00619.18
8.0.160.0040.00419.02
8.0.150.0000.00818.89
8.0.140.0000.00819.01
8.0.130.0000.00613.30
8.0.120.0060.00319.23
8.0.110.0030.00619.24
8.0.100.0030.00519.26
8.0.90.0080.00019.30
8.0.80.0070.01019.30
8.0.70.0040.00419.34
8.0.60.0080.00019.36
8.0.50.0000.00819.31
8.0.30.0090.01219.49
8.0.20.0110.01119.49
8.0.10.0060.00319.31
8.0.00.0100.00918.98
7.4.330.0020.00216.71
7.4.320.0050.00318.77
7.4.300.0040.00418.56
7.4.290.0040.00418.87
7.4.280.0030.00718.90
7.4.270.0050.00318.74
7.4.260.0000.00718.78
7.4.250.0060.00318.89
7.4.240.0000.00818.77
7.4.230.0070.00018.84
7.4.220.0120.00618.62
7.4.210.0060.00918.78
7.4.200.0080.00018.79
7.4.160.0130.01018.75
7.4.150.0190.00318.66
7.4.140.0080.01318.63
7.4.130.0100.01018.64
7.4.120.0110.00818.78
7.4.110.0070.02018.91
7.4.100.0080.01818.79
7.4.90.0100.01018.72
7.4.80.0120.00619.39
7.4.70.0120.00618.71
7.4.60.0070.01118.60
7.4.50.0030.00918.73
7.4.40.0090.00918.62
7.4.30.0160.00318.66
7.4.00.0040.01117.27
7.3.330.0000.00513.20
7.3.320.0000.00513.14
7.3.310.0000.00718.59
7.3.300.0050.00218.54
7.3.290.0030.01518.59
7.3.280.0070.01118.67
7.3.270.0100.01018.66
7.3.260.0120.00618.63
7.3.250.0110.00918.55
7.3.240.0130.01018.78
7.3.230.0100.01018.61
7.3.210.0120.00618.83
7.3.200.0090.01719.39
7.3.190.0100.01018.98
7.3.180.0070.01118.80
7.3.170.0170.00718.92
7.3.160.0110.00718.34
7.2.330.0150.00918.86
7.2.320.0150.00319.05
7.2.310.0110.00818.76
7.2.300.0070.01419.00
7.2.290.0100.01018.96
7.2.60.0070.01119.05
7.2.00.0000.01222.09
7.1.200.0000.01217.92
7.1.100.0090.00920.67
7.1.70.0070.01719.62
7.1.60.0160.01019.80
7.1.50.0070.01319.38
7.1.00.0030.07324.86
7.0.200.0050.00318.86
7.0.60.0100.08023.83
7.0.50.0030.07017.91
7.0.40.0130.07022.06
7.0.30.0330.06022.38
7.0.20.0330.07322.02
7.0.10.0100.08322.21
7.0.00.0070.05322.09
5.6.280.0000.06023.15
5.6.210.0000.04322.77
5.6.200.0070.03718.22
5.6.190.0030.06322.47
5.6.180.0300.05322.59
5.6.170.0470.07022.67
5.6.160.0100.08322.59
5.6.150.0030.04318.22
5.6.140.0070.07318.18
5.6.130.0170.07718.13
5.6.120.0130.06323.27
5.6.110.0100.08023.21
5.6.100.0030.04323.10
5.6.90.0100.07723.13
5.6.80.0170.08022.36
5.5.350.0100.08322.68
5.5.340.0100.08017.88
5.5.330.0130.08022.44
5.5.320.0530.04322.20
5.5.310.0230.04722.44
5.5.300.0030.06717.90
5.5.290.0030.05018.01
5.5.280.0100.05023.20
5.5.270.0100.04323.11
5.5.260.0200.08023.19
5.5.250.0030.05322.77
5.5.240.0200.07022.14

preferences:
51.42 ms | 401 KiB | 5 Q