3v4l.org

run code in 300+ PHP versions simultaneously
<?php $locale = "sv"; $currency = "USD"; $formatter = new \NumberFormatter($locale, \NumberFormatter::CURRENCY); $priceInCents = 1100; echo $formatter->formatCurrency($priceInCents / 100, $currency);

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.40.0060.00920.08
8.3.30.0060.01020.17
8.3.20.0040.00421.63
8.3.10.0030.00525.03
8.3.00.0050.00324.38
8.2.170.0120.00322.96
8.2.160.0070.00721.91
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0060.00319.50
8.2.110.0000.01221.89
8.2.100.0080.00419.63
8.2.90.0000.00820.73
8.2.80.0060.00319.50
8.2.70.0000.00819.63
8.2.60.0030.00519.80
8.2.50.0000.00819.50
8.2.40.0050.00323.21
8.2.30.0060.00321.76
8.2.20.0080.00019.62
8.2.10.0040.00419.98
8.2.00.0030.00620.21
8.1.270.0060.00321.74
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00023.59
8.1.230.0100.00319.36
8.1.220.0040.00419.66
8.1.210.0090.00019.23
8.1.200.0030.00619.23
8.1.190.0000.00919.25
8.1.180.0000.00819.50
8.1.170.0140.00420.30
8.1.160.0050.00223.35
8.1.150.0060.00320.30
8.1.140.0060.00319.25
8.1.130.0000.00819.61
8.1.120.0000.00819.35
8.1.110.0100.00019.36
8.1.100.0000.00819.45
8.1.90.0050.00319.45
8.1.80.0030.00619.21
8.1.70.0000.00719.38
8.1.60.0050.00319.62
8.1.50.0090.00019.52
8.1.40.0040.00419.51
8.1.30.0000.00819.69
8.1.20.0040.00419.85
8.1.10.0050.00319.49
8.1.00.0090.00019.46
8.0.300.0030.00518.91
8.0.290.0060.00318.46
8.0.280.0000.00819.93
8.0.270.0040.00419.24
8.0.260.0070.00019.13
8.0.250.0080.00018.88
8.0.240.0000.00718.84
8.0.230.0030.00518.91
8.0.220.0060.00318.83
8.0.210.0040.00418.81
8.0.200.0050.00218.84
8.0.190.0000.00918.79
8.0.180.0050.00319.00
8.0.170.0040.00418.92
8.0.160.0030.00618.69
8.0.150.0030.00518.74
8.0.140.0160.00418.76
8.0.130.0060.00313.27
8.0.120.0000.00918.93
8.0.110.0040.00419.08
8.0.100.0030.00518.95
8.0.90.0000.00818.88
8.0.80.0080.00818.97
8.0.70.0040.00418.93
8.0.60.0040.00418.88
8.0.50.0040.00419.06
8.0.30.0100.01119.07
8.0.20.0160.00519.20
8.0.10.0050.00319.20
8.0.00.0120.00718.80
7.4.330.0030.00315.08
7.4.320.0000.00618.65
7.4.300.0000.00818.61
7.4.290.0030.00318.46
7.4.280.0120.00718.46
7.4.270.0040.00418.60
7.4.260.0040.00418.41
7.4.250.0050.00318.50
7.4.240.0040.00418.46
7.4.230.0070.00018.37
7.4.220.0120.00618.41
7.4.210.0070.01318.62
7.4.200.0050.00218.53
7.4.160.0110.00718.42
7.4.150.0090.01018.51
7.4.140.0080.01218.46
7.4.130.0110.00718.45
7.4.120.0140.01018.42
7.4.110.0140.00418.56
7.4.100.0200.00018.43
7.4.90.0140.00418.41
7.4.80.0170.00619.39
7.4.70.0090.01318.47
7.4.60.0100.00718.21
7.4.50.0030.00618.23
7.4.40.0090.00918.33
7.4.30.0140.01118.29
7.4.00.0070.01116.83
7.3.330.0070.00013.16
7.3.320.0000.00512.96
7.3.310.0050.00218.21
7.3.300.0080.00018.37
7.3.290.0090.00918.40
7.3.280.0090.01118.36
7.3.270.0090.00918.52
7.3.260.0150.00318.77
7.3.250.0180.00718.56
7.3.240.0070.01018.34
7.3.230.0130.00318.56
7.3.210.0110.00718.66
7.3.200.0070.01019.39
7.3.190.0100.00718.36
7.3.180.0070.01018.42
7.3.170.0110.01118.67
7.3.160.0110.00618.57
7.3.10.0140.00618.16
7.3.00.0080.00818.05
7.2.330.0120.00618.39
7.2.320.0120.00618.85
7.2.310.0090.00918.59
7.2.300.0200.00318.45
7.2.290.0100.01018.60
7.2.130.0160.00618.18
7.2.120.0070.01018.47
7.2.110.0090.00618.36
7.2.100.0140.00018.45
7.2.90.0060.00318.27
7.2.80.0070.01018.55
7.2.70.0100.00618.50
7.2.60.0060.01118.67
7.2.50.0090.00618.67
7.2.40.0080.00418.13
7.2.30.0070.01018.75
7.2.20.0030.00818.39
7.2.10.0070.00718.64
7.2.00.0060.01120.13
7.1.250.0030.01717.31
7.1.200.0040.00917.68
7.1.100.0120.00620.43
7.1.70.0090.00319.23
7.1.60.0140.01420.03
7.1.50.0100.00719.05
7.1.00.0070.07024.75
7.0.200.0140.00416.95
7.0.60.0070.08721.95
7.0.50.0170.06717.77
7.0.40.0070.04321.91
7.0.30.0500.04022.21
7.0.20.0230.05322.13
7.0.10.0100.05321.93
7.0.00.0170.07722.09
5.6.280.0030.07323.11
5.6.210.0000.09022.40
5.6.200.0030.04718.19
5.6.190.0130.04022.31
5.6.180.1930.05722.57
5.6.170.0130.06022.14
5.6.160.0100.04022.34
5.6.150.0030.05718.15
5.6.140.0130.06318.18
5.6.130.0130.07318.11
5.6.120.0030.04322.99
5.6.110.0070.07323.21
5.6.100.0070.03723.06
5.6.90.0100.06723.00
5.6.80.0100.07022.41
5.6.70.4200.03722.42
5.5.350.0130.06022.34
5.5.340.0100.07317.95
5.5.330.0070.09321.92
5.5.320.0230.05321.98
5.5.310.0230.04322.08
5.5.300.0000.04318.01
5.5.290.0070.08017.91
5.5.280.0100.08322.48
5.5.270.0130.08022.46
5.5.260.0100.08722.69
5.5.250.0070.07322.52
5.5.240.0370.06322.27
5.4.450.0530.06321.32
5.4.440.0670.05321.22
5.4.430.0700.05720.95
5.4.420.0630.06721.43
5.4.410.0900.05021.27
5.4.400.0830.05020.65
5.4.390.0830.07721.14
5.4.380.0630.05320.88
5.4.370.0830.04021.17
5.4.360.0730.05720.98
5.4.350.0630.05320.85
5.4.340.0570.06021.14
5.4.320.0630.05320.65
5.4.310.0630.05321.00
5.4.300.0670.05020.82
5.4.290.0730.05320.98
5.4.280.0630.06721.10
5.4.270.0600.05321.12
5.4.260.0770.04021.16
5.4.250.0570.04720.78
5.4.240.0230.05020.84
5.4.230.0230.04320.62
5.4.220.0570.05020.64
5.4.210.0400.04720.88
5.4.200.0100.05318.88
5.4.190.0400.05020.99
5.4.180.0570.05721.17
5.4.170.0570.06021.22
5.4.160.0330.05021.12
5.4.150.0170.05320.90
5.4.140.0200.06318.35
5.4.130.0600.06718.49
5.4.120.0970.06718.67
5.4.110.0770.07018.49
5.4.100.0670.05718.70
5.4.90.0600.05018.21
5.4.80.0700.05018.27
5.4.70.0770.05018.68
5.4.60.0300.06718.65
5.4.50.0100.05718.50
5.4.40.0270.05018.14
5.4.30.0270.07318.42
5.4.20.0270.05318.65

preferences:
49.09 ms | 400 KiB | 5 Q