3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = new NumberFormatter( 'en_US', NumberFormatter::CURRENCY ); echo $fmt->formatCurrency(1234567.891234567890000, "EUR")."\n"; echo $fmt->formatCurrency(1234567.891234567890000, "HUF")."\n"; $fmt = new NumberFormatter( 'de_DE', NumberFormatter::CURRENCY ); echo $fmt->formatCurrency(1234567.891234567890000, "EUR")."\n"; echo $fmt->formatCurrency(1234567.891234567890000, "HUF")."\n"; $fmt = new NumberFormatter( 'hu_HU', NumberFormatter::CURRENCY ); echo $fmt->formatCurrency(1234567.891234567890000, "EUR")."\n"; echo $fmt->formatCurrency(1234567.891234567890000, "HUF")."\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.4.140.0120.02520.51
8.4.130.0120.01920.63
8.4.120.0130.01723.65
8.4.110.0110.01725.49
8.4.100.0150.01920.55
8.4.90.0130.01922.35
8.4.80.0120.02320.85
8.4.70.0120.01522.45
8.4.60.0120.02520.82
8.4.50.0100.01121.42
8.4.40.0100.02720.48
8.4.30.0070.01321.71
8.4.20.0110.01921.58
8.4.10.0210.02021.72
8.3.260.0280.02119.66
8.3.250.0080.00622.11
8.3.240.0110.02219.52
8.3.230.0140.01019.57
8.3.220.0130.01820.14
8.3.210.0090.02419.60
8.3.200.0050.01019.42
8.3.190.0090.02719.84
8.3.180.0130.02319.55
8.3.170.0130.01920.01
8.3.160.0040.02519.56
8.3.150.0220.01519.79
8.3.140.0390.01819.13
8.3.130.0310.01519.39
8.3.120.0260.02019.53
8.3.110.0220.01319.64
8.3.100.0410.01719.30
8.3.90.0110.02119.42
8.3.80.0210.00619.51
8.3.70.0160.01619.58
8.3.60.0230.01219.39
8.3.50.0250.01319.61
8.3.40.0120.01219.84
8.3.30.0230.00319.93
8.3.20.0190.00621.60
8.3.10.0120.00621.87
8.3.00.0110.00021.87
8.2.290.0150.01823.34
8.2.280.0090.01621.55
8.2.270.0240.00319.34
8.2.260.0150.01019.59
8.2.250.0160.00621.24
8.2.240.0160.00621.21
8.2.230.0140.01719.52
8.2.220.0220.00720.99
8.2.210.0250.02021.08
8.2.200.0140.00721.39
8.2.190.0150.00721.34
8.2.180.0200.01319.63
8.2.170.0310.01020.05
8.2.160.0220.01120.26
8.2.150.0150.00720.16
8.2.140.0250.00919.70
8.2.130.0350.00819.77
8.2.120.0350.00719.88
8.2.110.0310.00419.98
8.2.100.0340.00319.91
8.2.90.0270.00619.93
8.2.80.0170.00719.89
8.2.70.0180.00519.79
8.2.60.0200.00419.94
8.2.50.0240.01219.77
8.2.40.0300.00719.58
8.2.30.0190.01119.89
8.2.20.0230.00819.74
8.2.10.0310.00719.67
8.2.00.0300.00419.55
8.1.320.0120.02223.24

preferences:
35.01 ms | 403 KiB | 5 Q