3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new NumberFormatter('nb', NumberFormatter::SPELLOUT); $formatter->setTextAttribute(NumberFormatter::DEFAULT_RULESET, "%spellout-ordinal-masculine"); echo $formatter->format(20000).' '; echo $formatter->format(300000); ?>

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.0040.01220.80
8.3.60.0070.01419.25
8.3.50.0120.00823.23
8.3.40.0100.00620.68
8.3.30.0060.00920.55
8.3.20.0040.00421.96
8.3.10.0030.00525.66
8.3.00.0080.00022.16
8.2.190.0090.00619.00
8.2.180.0130.00320.79
8.2.170.0130.01022.96
8.2.160.0150.00022.45
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00423.33
8.2.120.0090.00026.35
8.2.110.0030.00622.39
8.2.100.0040.01120.30
8.2.90.0040.00421.13
8.2.80.0060.00319.88
8.2.70.0060.00320.00
8.2.60.0070.00320.30
8.2.50.0070.00319.63
8.2.40.0060.00323.39
8.2.30.0040.00422.55
8.2.20.0080.00019.93
8.2.10.0000.00820.34
8.2.00.0050.00320.34
8.1.280.0060.00925.92
8.1.270.0030.00620.82
8.1.260.0060.00328.09
8.1.250.0060.00328.09
8.1.240.0070.00323.93
8.1.230.0100.00319.79
8.1.220.0030.00620.04
8.1.210.0040.00419.73
8.1.200.0030.00619.73
8.1.190.0030.00619.91
8.1.180.0040.00419.89
8.1.170.0030.00621.08
8.1.160.0000.00822.73
8.1.150.0000.00820.84
8.1.140.0060.00321.91
8.1.130.0000.00820.06
8.1.120.0000.00820.05
8.1.110.0030.00619.97
8.1.100.0040.00419.99
8.1.90.0000.00819.66
8.1.80.0060.00320.00
8.1.70.0030.00520.05
8.1.60.0030.00620.09
8.1.50.0060.00320.03
8.1.40.0090.00320.03
8.1.30.0030.00620.32
8.1.20.0040.00420.33
8.1.10.0000.01019.83
8.1.00.0090.00319.87
8.0.300.0060.00319.16
8.0.290.0060.00319.00
8.0.280.0000.00820.26
8.0.270.0040.00419.57
8.0.260.0040.00419.59
8.0.250.0000.00719.26
8.0.240.0000.00819.26
8.0.230.0080.00019.18
8.0.220.0000.00819.27
8.0.210.0000.00819.07
8.0.200.0000.00719.28
8.0.190.0000.00819.11
8.0.180.0040.00419.37
8.0.170.0030.00619.40
8.0.160.0000.00819.13
8.0.150.0040.00419.04
8.0.140.0060.00319.14
8.0.130.0000.00613.28
8.0.120.0030.00619.34
8.0.110.0100.00019.41
8.0.100.0030.00619.39
8.0.90.0040.00419.65
8.0.80.0030.01319.26
8.0.70.0050.00319.58
8.0.60.0080.00019.04
8.0.50.0040.00419.45
8.0.30.0110.00919.63
8.0.20.0080.01519.39
8.0.10.0040.00419.49
8.0.00.0080.01119.25
7.4.330.0030.00316.89
7.4.320.0030.00719.14
7.4.300.0040.00419.21
7.4.290.0000.00819.01
7.4.280.0040.00419.07
7.4.270.0050.00219.05
7.4.260.0080.00019.10
7.4.250.0050.00318.95
7.4.240.0030.00519.15
7.4.230.0040.00418.96
7.4.220.0130.00718.80
7.4.210.0100.00719.05
7.4.200.0060.00319.27
7.4.160.0030.01418.98
7.4.150.0000.02118.92
7.4.140.0090.01318.90
7.4.130.0120.00818.89
7.4.120.0110.01118.86
7.4.110.0190.00819.03
7.4.100.0140.00718.75
7.4.90.0120.00918.84
7.4.80.0150.00319.39
7.4.70.0070.01818.98
7.4.60.0000.01718.98
7.4.50.0100.01018.73
7.4.40.0060.01219.07
7.4.30.0090.00918.98
7.4.00.0000.01517.46
7.3.330.0000.00713.25
7.3.320.0070.00013.10
7.3.310.0040.00418.54
7.3.300.0000.00718.84
7.3.290.0060.01218.84
7.3.280.0070.01018.55
7.3.270.0150.00418.82
7.3.260.0100.01519.18
7.3.250.0110.00918.70
7.3.240.0060.01318.78
7.3.230.0100.01019.00
7.3.210.0070.01118.73
7.3.200.0050.01618.95
7.3.190.0060.01218.92
7.3.180.0100.01019.00
7.3.170.0130.00518.72
7.3.160.0070.01718.75
7.3.10.0030.01019.13
7.3.00.0060.00918.96
7.2.330.0100.01019.05
7.2.320.0120.01419.24
7.2.310.0070.01019.30
7.2.300.0070.01118.68
7.2.290.0030.02018.89
7.2.130.0100.00619.05
7.2.120.0040.01118.80
7.2.110.0100.00718.96
7.2.100.0040.00819.27
7.2.90.0030.00919.23
7.2.80.0120.01019.27
7.2.70.0120.00619.38
7.2.60.0050.00919.16
7.2.50.0080.00618.99
7.2.40.0110.01119.46
7.2.30.0070.01119.31
7.2.20.0040.01119.05
7.2.10.0100.00319.16
7.2.00.0070.00920.68
7.1.250.0080.00418.18
7.1.200.0040.01118.45
7.1.100.0070.00720.68
7.1.70.0000.00819.63
7.1.60.0100.01719.84
7.1.50.0100.01419.51
7.1.00.0000.08025.25
7.0.200.0030.00619.27
7.0.60.0030.04322.53
7.0.50.0030.04317.79
7.0.40.0100.07322.33
7.0.30.0300.08022.63
7.0.20.0230.09022.56
7.0.10.0030.08722.58
7.0.00.0130.08322.62
5.6.280.0000.03723.51
5.6.210.0070.07722.93
5.6.200.0130.07018.13
5.6.190.0130.08322.88
5.6.180.0430.07722.88
5.6.170.0300.05322.76
5.6.160.0030.07723.00
5.6.150.0100.07018.11
5.6.140.0030.07718.11
5.6.130.0130.08018.11
5.6.120.0000.06323.40
5.6.110.0130.08023.50
5.6.100.0100.08023.52
5.6.90.0130.08323.81
5.6.80.0030.07722.90
5.5.350.0070.08323.09
5.5.340.0070.08018.02
5.5.330.0130.07722.44
5.5.320.0070.08322.61
5.5.310.0270.03322.59
5.5.300.0070.03717.89
5.5.290.0030.08018.02
5.5.280.0070.07723.42
5.5.270.0000.04723.62
5.5.260.0100.07323.52
5.5.250.0070.07323.32
5.5.240.0170.06322.91

preferences:
78.59 ms | 401 KiB | 5 Q