3v4l.org

run code in 300+ PHP versions simultaneously
<?php $amount = '1234345455.67'; $formatter = new NumberFormatter('en_US', NumberFormatter::CURRENCY); echo 'UK: ', $formatter->formatCurrency($amount, 'USD'), PHP_EOL;

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.0070.02820.93
8.3.60.0130.01319.13
8.3.50.0130.02019.25
8.3.40.0130.00320.05
8.3.30.0110.00420.09
8.3.20.0060.00321.54
8.3.10.0100.00623.11
8.3.00.0110.00723.32
8.2.180.0070.02019.25
8.2.170.0080.00822.96
8.2.160.0120.00321.60
8.2.150.0100.01024.18
8.2.140.0130.00324.66
8.2.130.0000.00823.00
8.2.120.0030.01726.35
8.2.110.0030.00722.94
8.2.100.0090.00319.91
8.2.90.0080.00020.59
8.2.80.0090.00019.90
8.2.70.0050.00319.36
8.2.60.0050.00519.91
8.2.50.0060.00320.03
8.2.40.0000.00822.01
8.2.30.0030.00622.39
8.2.20.0030.00519.91
8.2.10.0000.00720.03
8.2.00.0020.00520.03
8.1.280.0160.02225.92
8.1.270.0150.00423.45
8.1.260.0100.01026.35
8.1.250.0170.00328.09
8.1.240.0030.00725.38
8.1.230.0040.00821.10
8.1.220.0050.00319.66
8.1.210.0090.00019.23
8.1.200.0000.01019.10
8.1.190.0000.00819.23
8.1.180.0000.00819.40
8.1.170.0080.00020.43
8.1.160.0040.00420.48
8.1.150.0060.00322.11
8.1.140.0000.00921.40
8.1.130.0040.00420.29
8.1.120.0070.00019.64
8.1.110.0040.00419.42
8.1.100.0000.00819.62
8.1.90.0080.00019.63
8.1.80.0030.00519.55
8.1.70.0030.00619.28
8.1.60.0040.00419.70
8.1.50.0120.00019.29
8.1.40.0030.00719.63
8.1.30.0030.00519.78
8.1.20.0040.00419.74
8.1.10.0090.00019.75
8.1.00.0030.00619.63
8.0.300.0000.00821.46
8.0.290.0080.00018.63
8.0.280.0000.00819.84
8.0.270.0030.00519.29
8.0.260.0000.00718.70
8.0.250.0000.00718.94
8.0.240.0080.00319.00
8.0.230.0070.00018.88
8.0.220.0020.00518.92
8.0.210.0040.00418.86
8.0.200.0030.00318.84
8.0.190.0060.00318.77
8.0.180.0000.00818.66
8.0.170.0050.00318.93
8.0.160.0000.00818.76
8.0.150.0000.00718.65
8.0.140.0000.00818.90
8.0.130.0000.00513.25
8.0.120.0040.00418.90
8.0.110.0000.00818.81
8.0.100.0080.00019.17
8.0.90.0040.00418.83
8.0.80.0030.01718.99
8.0.70.0000.00819.07
8.0.60.0040.00419.09
8.0.50.0000.00818.91
8.0.30.0150.00519.31
8.0.20.0100.00919.16
8.0.10.0040.00419.03
8.0.00.0140.01018.88
7.4.330.0020.00215.55
7.4.320.0040.00418.71
7.4.300.0040.00418.66
7.4.290.0060.00318.50
7.4.280.0050.00318.57
7.4.270.0040.00418.48
7.4.260.0040.00418.51
7.4.250.0000.00818.63
7.4.240.0080.00018.57
7.4.230.0020.00518.57
7.4.220.0130.00618.64
7.4.210.0060.00918.71
7.4.200.0020.00518.56
7.4.160.0110.00918.69
7.4.150.0100.01318.54
7.4.140.0130.00918.48
7.4.130.0090.01018.58
7.4.120.0090.01418.56
7.3.330.0050.00013.11
7.3.320.0050.00013.10
7.3.310.0050.00318.28
7.3.300.0030.00318.38
7.3.290.0000.00718.44
7.3.280.0090.00818.36
7.3.270.0070.01818.52
7.3.260.0080.01118.74
7.3.250.0100.01118.59
7.3.240.0050.01318.60
7.1.70.0130.01717.53

preferences:
33.09 ms | 401 KiB | 5 Q