3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo '-- 10000 JPY --'."\n"; $fmt = new NumberFormatter('ja_JP', NumberFormatter::CURRENCY); echo 'ja: '.$fmt->formatCurrency(10000, "JPY")."\n"; $fmt = new NumberFormatter('en_JP', NumberFormatter::CURRENCY); echo 'en: '.$fmt->formatCurrency(10000, "JPY")."\n"; $fmt = new NumberFormatter('sv_JP', NumberFormatter::CURRENCY); echo 'sv: '.$fmt->formatCurrency(10000, "JPY")."\n"; echo '-- 49.99 USD --'."\n"; $fmt = new NumberFormatter('ja_JP', NumberFormatter::CURRENCY); echo 'ja: '.$fmt->formatCurrency(49.99, "USD")."\n"; $fmt = new NumberFormatter('en_JP', NumberFormatter::CURRENCY); echo 'en: '.$fmt->formatCurrency(49.99, "USD")."\n"; $fmt = new NumberFormatter('sv_JP', 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.60.0140.01421.46
8.3.50.0160.01422.53
8.3.40.0040.01220.33
8.3.30.0130.00620.34
8.3.20.0000.00821.93
8.3.10.0060.00323.35
8.3.00.0060.00325.41
8.2.180.0070.02119.48
8.2.170.0130.01022.96
8.2.160.0060.00922.22
8.2.150.0090.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00422.08
8.2.120.0060.00326.35
8.2.110.0050.00521.64
8.2.100.0070.00720.09
8.2.90.0050.00520.92
8.2.80.0000.00919.75
8.2.70.0120.01219.38
8.2.60.0040.00720.15
8.2.50.0080.00619.63
8.2.40.0070.00722.22
8.2.30.0060.00322.43
8.2.20.0040.00420.04
8.2.10.0000.00820.39
8.2.00.0040.00420.29
8.1.280.0100.01725.92
8.1.270.0150.00425.84
8.1.260.0050.00528.09
8.1.250.0000.00828.09
8.1.240.0060.00323.52
8.1.230.0090.00319.57
8.1.220.0030.00620.03
8.1.210.0000.01019.60
8.1.200.0060.00619.60
8.1.190.0110.00519.60
8.1.180.0070.00419.89
8.1.170.0000.00920.95
8.1.160.0000.01022.46
8.1.150.0000.00920.66
8.1.140.0030.00621.85
8.1.130.0030.00519.87
8.1.120.0080.00019.88
8.1.110.0030.00619.95
8.1.100.0090.00019.71
8.1.90.0000.00819.59
8.1.80.0040.00419.73
8.1.70.0040.00419.92
8.1.60.0000.01020.04
8.1.50.0060.00320.00
8.1.40.0030.00619.88
8.1.30.0050.00520.17
8.1.20.0030.00620.20
8.1.10.0000.00919.97
8.1.00.0000.00819.91
8.0.300.0070.00219.19
8.0.290.0040.00419.00
8.0.280.0040.00420.15
8.0.270.0000.00819.51
8.0.260.0040.00419.45
8.0.250.0000.00819.29
8.0.240.0030.00619.34
8.0.230.0000.00819.30
8.0.220.0030.00619.23
8.0.210.0080.00019.29
8.0.200.0030.00619.23
8.0.190.0030.00619.34
8.0.180.0080.00019.19
8.0.170.0030.00619.23
8.0.160.0030.00519.09
8.0.150.0080.00018.95
8.0.140.0030.00519.23
8.0.130.0030.00313.28
8.0.120.0060.00319.34
8.0.110.0000.00819.57
8.0.100.0050.00319.40
8.0.90.0040.00419.58
8.0.80.0120.00619.30
8.0.70.0030.00519.55
8.0.60.0000.00819.29
8.0.50.0000.00819.43
8.0.30.0120.01119.51
8.0.20.0080.01319.70
8.0.10.0040.00419.64
8.0.00.0120.00719.27
7.4.330.0030.00316.84
7.4.320.0070.00018.88
7.4.300.0070.00418.90
7.4.290.0030.00518.84
7.4.280.0030.00718.98
7.4.270.0030.00618.76
7.4.260.0030.00518.79
7.4.250.0080.00018.93
7.4.240.0000.00918.87
7.4.230.0050.00319.09
7.4.220.0140.00618.85
7.4.210.0150.00719.07
7.4.200.0060.00318.97
7.4.160.0060.01218.85
7.4.150.0120.01218.94
7.4.140.0120.01218.92
7.4.130.0150.00818.93
7.4.120.0120.00818.78
7.4.110.0050.01718.98
7.4.100.0100.01118.66
7.4.90.0120.01418.83
7.4.80.0000.01919.39
7.4.70.0080.01118.77
7.4.60.0130.01318.98
7.4.50.0090.00918.91
7.4.40.0060.01318.69
7.4.30.0070.01118.88
7.4.00.0120.00917.31
7.3.330.0000.00613.16
7.3.320.0000.00513.17
7.3.310.0040.00418.85
7.3.300.0080.00018.64
7.3.290.0100.00718.77
7.3.280.0100.00818.81
7.3.270.0110.00719.04
7.3.260.0150.01119.05
7.3.250.0100.00818.92
7.3.240.0090.01219.08
7.3.230.0100.01418.57
7.3.210.0150.00318.89
7.3.200.0070.01019.39
7.3.190.0080.01219.05
7.3.180.0040.01418.80
7.3.170.0090.00919.10
7.3.160.0030.01519.06
7.3.120.0130.01316.94
7.3.110.0150.01217.05
7.3.100.0120.00817.10
7.3.90.0070.00617.16
7.3.80.0110.00517.34
7.3.70.0050.00717.15
7.3.60.0100.00517.12
7.3.50.0060.00917.07
7.3.40.0060.00817.07
7.3.30.0020.01216.98
7.3.20.0100.00718.64
7.3.10.0040.00918.70
7.3.00.0070.00718.73
7.2.330.0070.01318.88
7.2.320.0150.01818.94
7.2.310.0090.00919.00
7.2.300.0080.01218.99
7.2.290.0060.01318.66
7.2.250.0140.01317.39
7.2.240.0170.01217.38
7.2.230.0060.01117.67
7.2.220.0080.01117.41
7.2.210.0060.00917.42
7.2.200.0030.00917.27
7.2.190.0050.01117.39
7.2.180.0110.00617.39
7.2.170.0130.00317.44
7.2.160.0090.00317.37
7.2.150.0090.00619.01
7.2.140.0140.00318.93
7.2.130.0030.01319.36
7.2.120.0040.01119.11
7.2.110.0060.01018.93
7.2.100.0100.00719.29
7.2.90.0130.00619.36
7.2.80.0000.01719.30
7.2.70.0040.01519.18
7.2.60.0140.00218.87
7.2.50.0000.01319.21
7.2.40.0090.00919.39
7.2.30.0030.01219.29
7.2.20.0060.01019.03
7.2.10.0070.01019.12
7.2.00.0090.00720.70
7.1.330.0110.01117.88
7.1.320.0110.00518.17
7.1.310.0080.00617.97
7.1.300.0050.00817.92
7.1.290.0060.00817.87
7.1.280.0060.00518.00
7.1.270.0090.00617.77
7.1.260.0080.00918.17
7.1.250.0000.01318.18
7.1.240.0040.00418.34
7.1.230.0000.01218.35
7.1.220.0040.01118.02
7.1.210.0170.00318.28
7.1.200.0040.01018.00
7.1.190.0070.00717.79
7.1.180.0070.01018.18
7.1.170.0030.01318.06
7.1.160.0120.00318.02
7.1.150.0070.00418.31
7.1.140.0070.00718.18
7.1.130.0100.00318.27
7.1.120.0060.01018.07
7.1.110.0030.00918.11
7.1.100.0050.00619.40
7.1.90.0000.01218.00
7.1.80.0060.00918.10
7.1.70.0100.00418.72
7.1.60.0050.01218.93
7.1.50.0080.00718.98
7.1.40.0030.01317.97
7.1.30.0100.00617.99
7.1.20.0070.00717.82
7.1.10.0120.00917.93
7.1.00.0020.04821.55
7.0.330.0130.00317.74
7.0.320.0120.00017.38
7.0.310.0040.01117.77
7.0.300.0030.01317.65
7.0.290.0170.00317.32
7.0.280.0040.01217.62
7.0.270.0000.01517.77
7.0.260.0060.00617.71
7.0.250.0070.01017.78
7.0.240.0000.01417.58
7.0.230.0080.00317.68
7.0.220.0080.00417.82
7.0.210.0040.01017.40
7.0.200.0070.00718.44
7.0.190.0090.00617.74
7.0.180.0070.00717.62
7.0.170.0030.01317.73
7.0.160.0090.00917.93
7.0.150.0070.00317.66
7.0.140.0090.00917.89
7.0.130.0070.00717.41
7.0.120.0090.00017.54
7.0.110.0030.00917.47
7.0.100.0000.01317.47
7.0.90.0030.01417.71
7.0.80.0120.00317.67
7.0.70.0040.00717.43
7.0.60.0030.04220.84
7.0.50.0100.04017.79
7.0.40.0040.04118.86
7.0.30.0180.02018.82
7.0.20.0120.04518.85
7.0.10.0070.04019.03
7.0.00.0040.04019.04
5.6.400.0030.01016.61
5.6.390.0080.00816.75
5.6.380.0040.01116.61
5.6.370.0080.00316.52
5.6.360.0060.01016.74
5.6.350.0070.01416.45
5.6.340.0090.00616.66
5.6.330.0100.00616.30
5.6.320.0040.01116.63
5.6.310.0040.01216.89
5.6.300.0080.00816.58
5.6.290.0060.01616.92
5.6.280.0040.03220.02
5.6.270.0030.01016.65
5.6.260.0060.00616.58
5.6.250.0090.00316.62
5.6.240.0040.00816.55
5.6.230.0090.00616.77
5.6.220.0030.01016.76
5.6.210.0080.04519.70
5.6.200.0070.02917.55
5.6.190.0070.03319.55
5.6.180.0180.03119.69
5.6.170.0150.03319.64
5.6.160.0060.04519.73
5.6.150.0080.03317.38
5.6.140.0070.03517.61
5.6.130.0120.04217.50
5.6.120.0030.02819.94
5.6.110.0120.04520.18
5.6.100.0080.03520.09
5.6.90.0060.02420.05
5.6.80.0030.04019.71
5.6.70.0080.00416.41
5.6.60.0100.00716.54
5.6.50.0090.00916.55
5.6.40.0100.01016.86
5.6.30.0060.00616.60
5.6.20.0130.00316.57
5.6.10.0060.00916.38
5.6.00.0080.00816.43
5.5.380.0030.01316.82
5.5.370.0030.00716.41
5.5.360.0070.01016.95
5.5.350.0050.04419.90
5.5.340.0050.04517.29
5.5.330.0100.03519.59
5.5.320.0130.02419.61
5.5.310.0170.04319.61
5.5.300.0100.04217.29
5.5.290.0050.02917.43
5.5.280.0030.04119.66
5.5.270.0020.02819.95
5.5.260.0050.04019.89
5.5.250.0110.04219.53
5.5.240.0080.03819.41
5.5.230.0140.00316.36
5.5.220.0130.00716.75
5.5.210.0030.01416.76
5.5.200.0060.00916.55
5.5.190.0040.01116.69
5.5.180.0000.00916.82
5.5.170.0100.00316.30
5.5.160.0030.00916.77
5.5.150.0030.01116.63
5.5.140.0030.01016.32
5.5.130.0000.01315.99
5.5.120.0030.00716.55
5.5.110.0100.00316.41
5.5.100.0070.00716.47
5.5.90.0030.01316.80
5.5.80.0080.00816.11
5.5.70.0030.00716.63
5.5.60.0060.00616.30
5.5.50.0000.01216.65
5.5.40.0070.00716.38
5.5.30.0130.00316.29
5.5.20.0080.00416.46
5.5.10.0060.00916.39
5.5.00.0090.00316.23

preferences:
76.2 ms | 401 KiB | 5 Q