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"; echo '-- 49.99 CAD --'."\n"; $fmt = new NumberFormatter('ja', NumberFormatter::CURRENCY); echo 'ja: '.$fmt->formatCurrency(49.99, "CAD")."\n"; $fmt = new NumberFormatter('en', NumberFormatter::CURRENCY); echo 'en: '.$fmt->formatCurrency(49.99, "CAD")."\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.0200.01721.05
8.3.50.0100.02422.58
8.3.40.0070.01020.29
8.3.30.0110.00720.13
8.3.20.0000.00821.96
8.3.10.0080.00025.16
8.3.00.0000.00825.19
8.2.180.0070.02119.25
8.2.170.0100.01022.96
8.2.160.0090.00622.09
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0000.00822.07
8.2.120.0080.00026.35
8.2.110.0080.00422.27
8.2.100.0030.01020.16
8.2.90.0030.00620.98
8.2.80.0070.00320.05
8.2.70.0040.00719.75
8.2.60.0030.00620.05
8.2.50.0000.00919.75
8.2.40.0000.00822.40
8.2.30.0030.00522.28
8.2.20.0060.00319.89
8.2.10.0000.00820.27
8.2.00.0090.00020.17
8.1.280.0210.01725.92
8.1.270.0000.00925.60
8.1.260.0100.00028.09
8.1.250.0000.00828.09
8.1.240.0080.00425.30
8.1.230.0130.00024.94
8.1.220.0050.00319.89
8.1.210.0000.00919.61
8.1.200.0060.00319.34
8.1.190.0030.00619.13
8.1.180.0000.01019.52
8.1.170.0060.00320.83
8.1.160.0000.00822.41
8.1.150.0000.00820.46
8.1.140.0000.00921.68
8.1.130.0030.00519.91
8.1.120.0040.00419.80
8.1.110.0030.00519.58
8.1.100.0090.00019.72
8.1.90.0030.00619.60
8.1.80.0000.00819.81
8.1.70.0000.00819.90
8.1.60.0000.00919.84
8.1.50.0030.00619.84
8.1.40.0000.00819.52
8.1.30.0000.00920.14
8.1.20.0060.00320.10
8.1.10.0030.00619.93
8.1.00.0000.00919.72
8.0.300.0040.00419.04
8.0.290.0090.00018.75
8.0.280.0040.00420.10
8.0.270.0000.00819.54
8.0.260.0000.00819.26
8.0.250.0000.00819.11
8.0.240.0070.00019.24
8.0.230.0000.00819.07
8.0.220.0000.00819.13
8.0.210.0040.00419.21
8.0.200.0000.00719.13
8.0.190.0030.00619.13
8.0.180.0000.00819.19
8.0.170.0060.00319.15
8.0.160.0040.00418.95
8.0.150.0030.00519.19
8.0.140.0030.00619.14
8.0.130.0030.00313.41
8.0.120.0060.00319.24
8.0.110.0030.00619.41
8.0.100.0000.00919.32
8.0.90.0030.00619.29
8.0.80.0150.00919.19
8.0.70.0060.00319.37
8.0.60.0050.00319.27
8.0.50.0090.00019.23
8.0.30.0110.01019.63
8.0.20.0110.01319.38
8.0.10.0090.00019.30
8.0.00.0100.01018.97
7.4.330.0000.00616.70
7.4.320.0060.00318.81
7.4.300.0050.00518.74
7.4.290.0040.00718.82
7.4.280.0070.00318.87
7.4.270.0030.00618.76
7.4.260.0040.00418.73
7.4.250.0040.00418.73
7.4.240.0040.00518.79
7.4.230.0000.00818.72
7.4.220.0130.01718.60
7.4.210.0030.01318.86
7.4.200.0000.00818.80
7.4.160.0070.01018.94
7.4.150.0070.01918.96
7.4.140.0110.01118.70
7.4.130.0100.00918.77
7.4.120.0130.00718.74
7.4.110.0030.01618.71
7.4.100.0130.00618.73
7.4.90.0110.01418.84
7.4.80.0070.01119.39
7.4.70.0090.00918.57
7.4.60.0120.00618.71
7.4.50.0100.00218.59
7.4.40.0070.01518.84
7.4.30.0090.01518.80
7.4.00.0060.01417.12
7.3.330.0030.00313.12
7.3.320.0060.00013.22
7.3.310.0040.00418.77
7.3.300.0050.00218.71
7.3.290.0110.00918.63
7.3.280.0100.01218.72
7.3.270.0070.01118.67
7.3.260.0100.01018.96
7.3.250.0130.00818.55
7.3.240.0100.00818.77
7.3.230.0120.00618.78
7.3.210.0130.00618.77
7.3.200.0150.00419.39
7.3.190.0100.00818.53
7.3.180.0120.00618.72
7.3.170.0100.01418.69
7.3.160.0150.00318.62
7.3.120.0190.00817.04
7.3.110.0150.01216.76
7.3.100.0120.01617.28
7.3.90.0070.01016.76
7.3.80.0070.00717.26
7.3.70.0040.01117.25
7.3.60.0060.00317.14
7.3.50.0110.00417.05
7.3.40.0040.00717.12
7.3.30.0070.00716.95
7.3.20.0070.00318.86
7.3.10.0100.00718.64
7.3.00.0110.00718.67
7.2.330.0130.00619.00
7.2.320.0120.00618.88
7.2.310.0140.00719.00
7.2.300.0060.01218.91
7.2.290.0060.01519.06
7.2.250.0180.00617.21
7.2.240.0200.00616.89
7.2.230.0090.00617.19
7.2.220.0000.01917.50
7.2.210.0060.01317.13
7.2.200.0000.01117.37
7.2.190.0030.01317.38
7.2.180.0040.00817.36
7.2.170.0030.01017.32
7.2.160.0060.00617.25
7.2.150.0080.00819.17
7.2.140.0030.01019.30
7.2.130.0070.00419.03
7.2.120.0040.00819.05
7.2.110.0060.01219.10
7.2.100.0100.01019.25
7.2.90.0030.01319.11
7.2.80.0100.00619.17
7.2.70.0130.00019.05
7.2.60.0180.00519.21
7.2.50.0150.00019.06
7.2.40.0070.00419.06
7.2.30.0090.00919.38
7.2.20.0060.01218.98
7.2.10.0070.01318.97
7.2.00.0040.01120.62
7.1.330.0040.02317.84
7.1.320.0030.01317.80
7.1.310.0120.00617.85
7.1.300.0090.00617.90
7.1.290.0090.00617.58
7.1.280.0030.01217.95
7.1.270.0070.00417.85
7.1.260.0090.00917.85
7.1.250.0070.00717.98
7.1.240.0090.00617.76
7.1.230.0060.01018.10
7.1.220.0060.01218.07
7.1.210.0090.00317.93
7.1.200.0120.00318.01
7.1.190.0030.01418.09
7.1.180.0030.01317.89
7.1.170.0060.00617.93
7.1.160.0000.01417.99
7.1.150.0090.00618.04
7.1.140.0060.00917.99
7.1.130.0030.00918.04
7.1.120.0060.00917.97
7.1.110.0120.00418.08
7.1.100.0030.01019.21
7.1.90.0000.01118.21
7.1.80.0090.00317.80
7.1.70.0030.01018.72
7.1.60.0100.01019.08
7.1.50.0070.01418.78
7.1.40.0070.01118.22
7.1.30.0070.01117.95
7.1.20.0040.00817.84
7.1.10.0040.01118.14
7.1.00.0110.03821.43
7.0.330.0080.00617.65
7.0.320.0060.00917.34
7.0.310.0040.01217.74
7.0.300.0040.00817.59
7.0.290.0070.00717.57
7.0.280.0060.01017.46
7.0.270.0110.00717.43
7.0.260.0080.00617.56
7.0.250.0060.01217.85
7.0.240.0030.01317.82
7.0.230.0070.00317.79
7.0.220.0030.00917.77
7.0.210.0100.00317.41
7.0.200.0050.00918.45
7.0.190.0060.01217.65
7.0.180.0120.00617.58
7.0.170.0060.00917.60
7.0.160.0100.00317.68
7.0.150.0070.01017.46
7.0.140.0060.00917.67
7.0.130.0070.01017.71
7.0.120.0090.00917.74
7.0.110.0040.01117.62
7.0.100.0090.00617.43
7.0.90.0060.01017.88
7.0.80.0090.00617.45
7.0.70.0000.01217.70
7.0.60.0150.04320.70
7.0.50.0090.02917.68
7.0.40.0140.01818.92
7.0.30.0150.02818.97
7.0.20.0180.04618.93
7.0.10.0050.04718.84
7.0.00.0100.04018.91
5.6.400.0030.01216.69
5.6.390.0000.01016.75
5.6.380.0060.00916.47
5.6.370.0060.00616.77
5.6.360.0070.00716.86
5.6.350.0030.01216.40
5.6.340.0070.01116.68
5.6.330.0090.00316.47
5.6.320.0080.00416.73
5.6.310.0070.00316.91
5.6.300.0070.01016.30
5.6.290.0070.01016.45
5.6.280.0030.03520.06
5.6.270.0040.01216.55
5.6.260.0100.00616.82
5.6.250.0100.00616.78
5.6.240.0100.00616.83
5.6.230.0030.01616.38
5.6.220.0030.01016.61
5.6.210.0110.02719.71
5.6.200.0070.02417.40
5.6.190.0090.04419.77
5.6.180.0170.03219.89
5.6.170.0130.04019.61
5.6.160.0050.03019.70
5.6.150.0080.02017.34
5.6.140.0070.04217.32
5.6.130.0080.04017.46
5.6.120.0100.04219.80
5.6.110.0030.05020.02
5.6.100.0050.02319.86
5.6.90.0050.03520.13
5.6.80.0050.04219.46
5.6.70.0030.01416.30
5.6.60.0000.01516.25
5.6.50.0090.00616.50
5.6.40.0030.01516.25
5.6.30.0030.01216.45
5.6.20.0100.00316.44
5.6.10.0040.00816.50
5.6.00.0040.01416.33
5.5.380.0030.00916.72
5.5.370.0060.01216.27
5.5.360.0070.00315.98
5.5.350.0080.04019.47
5.5.340.0110.03817.14
5.5.330.0090.04619.28
5.5.320.0330.02519.39
5.5.310.0170.04219.31
5.5.300.0050.04717.37
5.5.290.0020.05317.40
5.5.280.0070.04019.86
5.5.270.0050.03219.88
5.5.260.0080.03819.59
5.5.250.0050.04319.64
5.5.240.0030.03119.36
5.5.230.0030.01016.59
5.5.220.0080.00316.27
5.5.210.0030.01216.45
5.5.200.0000.01316.45
5.5.190.0000.01215.92
5.5.180.0040.01216.43
5.5.170.0080.00816.41
5.5.160.0060.00616.36
5.5.150.0090.00316.43
5.5.140.0050.00616.41
5.5.130.0040.01116.20
5.5.120.0070.01116.48
5.5.110.0060.01316.45
5.5.100.0100.00716.24
5.5.90.0090.00616.70
5.5.80.0060.00916.64
5.5.70.0030.01316.23
5.5.60.0110.00416.57
5.5.50.0080.00416.39
5.5.40.0030.00616.54
5.5.30.0070.00715.86
5.5.20.0070.01016.49
5.5.10.0040.00716.59
5.5.00.0030.01216.15

preferences:
69.9 ms | 401 KiB | 5 Q