3v4l.org

run code in 300+ PHP versions simultaneously
<?php setlocale(LC_ALL, 'de_DE'); $number = 462.501; print 'Original number: '.$number."\n\n"; $formatter = new NumberFormatter('nl_BE', NumberFormatter::CURRENCY); $value = $formatter->format($number); print 'NumberFormatter::parseCurency() returns: '.$formatter->parseCurrency($value, $currency)."\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.0280.02521.13
8.3.60.0160.02619.88
8.3.50.0070.02721.29
8.3.40.0140.01020.92
8.3.30.0110.00720.97
8.3.20.0060.00324.33
8.3.10.0000.00924.66
8.3.00.0000.00926.16
8.2.190.0320.01919.63
8.2.180.0130.02225.92
8.2.170.0140.00721.05
8.2.160.0100.00622.96
8.2.150.0060.00325.66
8.2.140.0060.00324.66
8.2.130.0090.00026.16
8.2.120.0000.00923.13
8.2.110.0030.00722.62
8.2.100.0070.00720.46
8.2.90.0100.01020.38
8.2.80.0040.01120.74
8.2.70.0130.01020.09
8.2.60.0160.00220.43
8.2.50.0130.00619.88
8.2.40.0000.01022.70
8.2.30.0040.00820.74
8.2.20.0120.00320.78
8.2.10.0060.00321.53
8.2.00.0060.00321.54
8.1.280.0100.03425.92
8.1.270.0090.00024.20
8.1.260.0070.00326.35
8.1.250.0060.00328.09
8.1.240.0070.00424.20
8.1.230.0100.00323.63
8.1.220.0060.00320.41
8.1.210.0070.00719.86
8.1.200.0040.00719.88
8.1.190.0030.00719.97
8.1.180.0080.00320.29
8.1.170.0130.00021.45
8.1.160.0040.00721.35
8.1.150.0090.00421.09
8.1.140.0110.00322.90
8.1.130.0030.00622.42
8.1.120.0030.00720.35
8.1.110.0090.00020.13
8.1.100.0040.01320.32
8.1.90.0000.00920.20
8.1.80.0060.00620.37
8.1.70.0000.00920.33
8.1.60.0000.01020.50
8.1.50.0030.00620.35
8.1.40.0030.00620.43
8.1.30.0030.00620.53
8.1.20.0030.00620.64
8.1.10.0120.00420.48
8.1.00.0070.00420.38
8.0.300.0030.00621.50
8.0.290.0100.00319.50
8.0.280.0070.00520.95
8.0.270.0060.00320.36
8.0.260.0000.00820.71
8.0.250.0030.00619.66
8.0.240.0000.00919.63
8.0.230.0000.01219.51
8.0.220.0030.00619.55
8.0.210.0100.00019.64
8.0.200.0030.00619.56
8.0.190.0060.00319.77
8.0.180.0100.00719.46
8.0.170.0040.00719.47
8.0.160.0120.00319.45
8.0.150.0030.00619.55
8.0.140.0130.00319.44
8.0.130.0090.00013.72
8.0.120.0000.00919.62
8.0.110.0000.00919.82
8.0.100.0030.00619.70
8.0.90.0040.00419.84
8.0.80.0040.01519.70
8.0.70.0000.00919.75
8.0.60.0000.01019.44
8.0.50.0100.00019.64
8.0.30.0230.02319.58
8.0.20.0240.00719.82
8.0.10.0340.00019.88
8.0.00.0170.01519.63
7.4.330.0040.00015.55
7.4.320.0040.00419.29
7.4.300.0030.00719.30
7.4.290.0100.00719.16
7.4.280.0050.00519.38
7.4.270.0000.00819.41
7.4.260.0050.00013.75
7.4.250.0060.00319.09
7.4.240.0070.00219.36
7.4.230.0000.00919.44
7.4.220.0000.00819.25
7.4.210.0170.01019.34
7.4.200.0030.00619.19
7.4.160.0180.01119.15
7.4.150.0220.01419.12
7.4.140.0220.01119.11
7.4.130.0200.00818.77
7.4.120.0240.00518.93
7.4.110.0260.00619.15
7.4.100.0250.00719.08
7.4.90.0180.01219.07
7.4.80.0080.02418.89
7.4.70.0200.01219.11
7.4.60.0200.01018.79
7.4.50.0170.01318.91
7.4.40.0260.00419.02
7.4.30.0230.00818.93
7.4.20.0160.01318.88
7.4.10.0200.01018.81
7.4.00.0160.01619.09
7.3.330.0130.01019.01
7.3.320.0020.00213.44
7.3.310.0080.00019.20
7.3.300.0050.00319.13
7.3.290.0360.00819.10
7.3.280.0200.01218.89
7.3.270.0350.00818.74
7.3.260.0100.02119.00
7.3.250.0200.01119.04
7.3.240.0210.01418.93
7.3.230.0240.01218.80
7.3.220.0250.00618.89
7.3.210.0140.02118.98
7.3.200.0270.01418.86
7.3.190.0270.00518.84
7.3.180.0260.00718.98
7.3.170.0210.01018.96
7.3.160.0270.00919.05
7.3.150.0250.00618.95
7.3.140.0170.01518.77
7.3.130.0300.00819.02
7.3.120.0230.01218.88
7.3.110.0270.00518.75
7.3.100.0220.01418.86
7.3.90.0330.00019.01
7.3.80.0290.00618.80
7.3.70.0310.00819.15
7.3.60.0110.01819.09
7.3.50.0320.00719.12
7.3.40.0240.00819.21
7.3.30.0310.00619.15
7.3.20.0190.01918.99
7.3.10.0210.01218.86
7.3.00.0240.00618.88

preferences:
72.12 ms | 401 KiB | 5 Q