3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '-- 49.99 JPY --'."\n"; $fmt = new NumberFormatter('ja_JP', NumberFormatter::CURRENCY); echo 'ja_JP: '.$fmt->formatCurrency(49.99, "JPY")."\n"; $fmt = new NumberFormatter('en_US', NumberFormatter::CURRENCY); echo 'en_US: '.$fmt->formatCurrency(49.99, "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.70.0100.01719.43
8.3.60.0060.02119.48
8.3.50.0290.01823.33
8.3.40.0060.00920.29
8.3.30.0090.00620.29
8.3.20.0050.00321.91
8.3.10.0000.00823.69
8.3.00.0050.00325.27
8.2.180.0200.02321.41
8.2.170.0120.00420.58
8.2.160.0150.00022.96
8.2.150.0030.00625.66
8.2.140.0000.00824.66
8.2.130.0050.00322.07
8.2.120.0030.00626.35
8.2.110.0030.00723.85
8.2.100.0040.00820.17
8.2.90.0030.00620.98
8.2.80.0030.00619.93
8.2.70.0070.00519.63
8.2.60.0060.00320.05
8.2.50.0030.00619.63
8.2.40.0130.00622.28
8.2.30.0050.00522.42
8.2.20.0030.01119.81
8.2.10.0030.00520.20
8.2.00.0080.00020.17
8.1.280.0250.02125.92
8.1.270.0160.00325.54
8.1.260.0100.00028.09
8.1.250.0060.00328.09
8.1.240.0040.00724.05
8.1.230.0030.00921.35
8.1.220.0080.00020.00
8.1.210.0070.00319.48
8.1.200.0080.00319.50
8.1.190.0060.00319.23
8.1.180.0060.00319.66
8.1.170.0040.00420.55
8.1.160.0000.00822.31
8.1.150.0040.00420.52
8.1.140.0080.00421.77
8.1.130.0000.00719.84
8.1.120.0000.00819.76
8.1.110.0050.00519.50
8.1.100.0040.00419.93
8.1.90.0040.00419.89
8.1.80.0060.00319.93
8.1.70.0000.00819.57
8.1.60.0070.00419.68
8.1.50.0120.00919.51
8.1.40.0090.00019.88
8.1.30.0090.00020.30
8.1.20.0060.00320.02
8.1.10.0000.01019.90
8.1.00.0050.00519.86
8.0.300.0030.00518.97
8.0.290.0080.00018.88
8.0.280.0080.00020.08
8.0.270.0000.00819.30
8.0.260.0070.00019.24
8.0.250.0030.00619.24
8.0.240.0070.00419.23
8.0.230.0080.00319.18
8.0.220.0030.00619.14
8.0.210.0060.00319.12
8.0.200.0100.00319.25
8.0.190.0060.00319.20
8.0.180.0000.01019.08
8.0.170.0000.00819.26
8.0.160.0000.00819.09
8.0.150.0030.00618.90
8.0.140.0050.00319.07
8.0.130.0050.00013.31
8.0.120.0050.00519.20
8.0.110.0040.00419.24
8.0.100.0030.00519.35
8.0.90.0000.00819.20
8.0.80.0090.00919.28
8.0.70.0030.00519.34
8.0.60.0050.00319.25
8.0.50.0000.00919.26
8.0.30.0100.00919.47
8.0.20.0090.01219.52
8.0.10.0050.00519.42
8.0.00.0110.01119.20
7.4.330.0030.00316.70
7.4.320.0030.00518.88
7.4.300.0120.00018.79
7.4.290.0040.00418.87
7.4.280.0000.01018.94
7.4.270.0000.00918.86
7.4.260.0000.00818.78
7.4.250.0030.00518.91
7.4.240.0010.00718.90
7.4.230.0000.00818.70
7.4.220.0240.01218.79
7.4.210.0080.01218.81
7.4.200.0070.00018.97
7.4.160.0100.00718.65
7.4.150.0160.01018.88
7.4.140.0130.01118.77
7.4.130.0110.01318.82
7.4.120.0100.00918.76
7.4.110.0220.01118.73
7.4.100.0120.00618.63
7.4.90.0060.01218.75
7.4.80.0040.01519.39
7.4.70.0120.00618.93
7.4.60.0120.00618.70
7.4.50.0070.01318.52
7.4.40.0110.00718.89
7.4.30.0150.00418.82
7.4.10.0220.00317.08
7.4.00.0090.01017.19
7.3.330.0000.00613.13
7.3.320.0000.00513.19
7.3.310.0040.00418.79
7.3.300.0030.00618.75
7.3.290.0130.01118.74
7.3.280.0080.01318.81
7.3.270.0110.01418.50
7.3.260.0080.01718.76
7.3.250.0130.00818.72
7.3.240.0130.00618.94
7.3.230.0140.00518.74
7.3.210.0120.00919.11
7.3.200.0140.01019.39
7.3.190.0090.01218.62
7.3.180.0060.01318.67
7.3.170.0030.01618.70
7.3.160.0150.00918.78
7.3.130.0190.00616.98
7.3.120.0140.00917.10
7.3.110.0130.00717.19
7.3.100.0080.00917.09
7.3.90.0050.01317.19
7.3.80.0100.00517.14
7.3.70.0060.00716.92
7.3.60.0080.00616.97
7.3.50.0010.01516.95
7.3.40.0040.00916.92
7.3.30.0070.00817.04
7.3.20.0050.01118.65
7.3.10.0070.00818.59
7.3.00.0060.00818.62
7.2.330.0060.01218.97
7.2.320.0740.03018.88
7.2.310.0070.01719.14
7.2.300.0110.00719.18
7.2.290.0070.01719.31
7.2.260.0190.00617.31
7.2.250.0080.01217.44
7.2.240.0100.00817.43
7.2.230.0100.00917.37
7.2.220.0070.00817.17
7.2.210.0070.00817.36
7.2.200.0050.00917.39
7.2.190.0120.00317.24
7.2.180.0050.01017.37
7.2.170.0030.00917.28
7.2.160.0060.00917.21
7.2.150.0140.00318.94
7.2.140.0060.00619.32
7.2.130.0070.01019.10
7.2.120.0110.00519.15
7.2.110.0070.00719.14
7.2.100.0100.00519.16
7.2.90.0060.00619.07
7.2.80.0060.00919.21
7.2.70.0060.00619.04
7.2.60.0150.00819.24
7.2.50.0070.00819.13
7.2.40.0030.01019.22
7.2.30.0100.00219.03
7.2.20.0050.01119.25
7.2.10.0030.01019.15
7.2.00.0060.01120.07
7.1.330.0080.00717.88
7.1.320.0070.00717.95
7.1.310.0060.00717.84
7.1.300.0030.00917.82
7.1.290.0040.01117.78
7.1.280.0080.00717.86
7.1.270.0080.00917.92
7.1.260.0070.00718.03
7.1.250.0000.01117.98
7.1.240.0090.00517.95
7.1.230.0070.00517.93
7.1.220.0040.00817.93
7.1.210.0060.00517.95
7.1.200.0040.01017.97
7.1.190.0000.00917.92
7.1.180.0060.01017.88
7.1.170.0080.00517.96
7.1.160.0050.00817.92
7.1.150.0050.00818.02
7.1.140.0050.00917.87
7.1.130.0050.00717.86
7.1.120.0060.00917.99
7.1.110.0000.01818.08
7.1.100.0090.00619.01
7.1.90.0070.00617.86
7.1.80.0110.00517.92
7.1.70.0020.01318.53
7.1.60.0120.00718.54
7.1.50.0050.01518.33
7.1.40.0070.00617.82
7.1.30.0020.01218.02
7.1.20.0070.00718.05
7.1.10.0080.00618.00
7.1.00.0060.03120.11
7.0.330.0060.00917.59
7.0.320.0110.00317.71
7.0.310.0050.00917.68
7.0.300.0040.00717.35
7.0.290.0050.00717.62
7.0.280.0050.00917.52
7.0.270.0040.01017.60
7.0.260.0080.00817.52
7.0.250.0070.00817.72
7.0.240.0060.01417.73
7.0.230.0070.00917.70
7.0.220.0040.01417.70
7.0.210.0080.00517.73
7.0.200.0090.00618.26
7.0.190.0050.00617.65
7.0.180.0030.01117.67
7.0.170.0130.00317.63
7.0.160.0070.00817.76
7.0.150.0080.00517.56
7.0.140.0030.00817.70
7.0.130.0020.01317.63
7.0.120.0090.00817.63
7.0.110.0080.00817.54
7.0.100.0090.00317.43
7.0.90.0020.01117.60
7.0.80.0030.01017.54
7.0.70.0090.00417.43
7.0.60.0090.03319.67
7.0.50.0070.03117.79
7.0.40.0050.03717.95
7.0.30.0140.02917.90
7.0.20.0160.02817.80
7.0.10.0100.03017.82
7.0.00.0080.03217.77
5.6.400.0080.00816.67
5.6.390.0060.01016.79
5.6.380.0040.00916.81
5.6.370.0070.00516.67
5.6.360.0040.00916.65
5.6.350.0040.00916.84
5.6.340.0020.00716.64
5.6.330.0080.00616.63
5.6.320.0100.00616.63
5.6.310.0050.00816.47
5.6.300.0030.01016.63
5.6.290.0050.00916.77
5.6.280.0050.01618.84
5.6.270.0050.01116.79
5.6.260.0110.00316.64
5.6.250.0050.01016.58
5.6.240.0070.00816.80
5.6.230.0070.00816.67
5.6.220.0030.00816.66
5.6.210.0080.02518.68
5.6.200.0040.02117.12
5.6.190.0040.02118.70
5.6.180.0170.02618.76
5.6.170.0120.03318.63
5.6.160.0070.02418.60
5.6.150.0110.01617.24
5.6.140.0070.03417.17
5.6.130.0110.02917.09
5.6.120.0090.02018.88
5.6.110.0060.03018.67
5.6.100.0040.02218.80
5.6.90.0060.02618.67
5.6.80.0020.03118.51
5.6.70.0040.00916.39
5.6.60.0070.00716.60
5.6.50.0030.01016.62
5.6.40.0020.00916.45
5.6.30.0040.01316.48
5.6.20.0090.00616.66
5.6.10.0070.00716.32
5.6.00.0050.00616.27
5.5.380.0040.00713.92
5.5.370.0040.00913.74
5.5.360.0060.00313.71
5.5.350.0060.02716.64
5.5.340.0080.02815.15
5.5.330.0020.02716.58
5.5.320.0270.02616.64
5.5.310.0150.02616.83
5.5.300.0120.01915.12
5.5.290.0060.02115.24
5.5.280.0060.03316.81
5.5.270.0100.02916.91
5.5.260.0070.03316.73
5.5.250.0080.02716.75
5.5.240.0040.01616.45
5.5.230.0120.00313.25
5.5.220.0060.00613.71
5.5.210.0050.00513.57
5.5.200.0050.00413.80
5.5.190.0080.00313.71
5.5.180.0110.00413.60
5.5.170.0070.00513.73
5.5.160.0120.00613.55
5.5.150.0070.00713.71
5.5.140.0030.00813.68
5.5.130.0000.01313.52
5.5.120.0050.00413.77
5.5.110.0080.00413.88
5.5.100.0060.00713.64
5.5.90.0030.00513.38
5.5.80.0060.00413.75
5.5.70.0040.00913.79
5.5.60.0050.00713.73
5.5.50.0010.01013.55
5.5.40.0030.00913.62
5.5.30.0030.01013.63
5.5.20.0060.00813.72
5.5.10.0030.00813.74
5.5.00.0010.00813.70

preferences:
68.25 ms | 401 KiB | 5 Q