3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new NumberFormatter('lv', NumberFormatter::SPELLOUT); $formatter->setTextAttribute(NumberFormatter::DEFAULT_RULESET, "%spellout-cardinal"); echo $formatter->format(2000000); ?>

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.60.0070.01418.75
8.3.50.0060.01323.09
8.3.40.0160.00020.61
8.3.30.0130.00620.47
8.3.20.0060.01221.79
8.3.10.0060.00325.40
8.3.00.0060.00321.50
8.2.180.0140.00718.75
8.2.170.0090.00622.96
8.2.160.0080.00822.21
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0030.00621.24
8.2.120.0000.00826.35
8.2.110.0100.01022.18
8.2.100.0080.00420.03
8.2.90.0000.00821.86
8.2.80.0000.00820.15
8.2.70.0060.00320.05
8.2.60.0060.00619.93
8.2.50.0040.00419.63
8.2.40.0050.01022.26
8.2.30.0000.00722.27
8.2.20.0090.00419.95
8.2.10.0050.00320.10
8.2.00.0000.00820.13
8.1.280.0100.00625.92
8.1.270.0000.01225.84
8.1.260.0050.00328.09
8.1.250.0030.00528.09
8.1.240.0000.00924.06
8.1.230.0080.00421.50
8.1.220.0030.00619.91
8.1.210.0090.00019.61
8.1.200.0080.00919.23
8.1.190.0040.00419.60
8.1.180.0030.00619.48
8.1.170.0030.00620.75
8.1.160.0040.00423.78
8.1.150.0090.00020.61
8.1.140.0040.00421.74
8.1.130.0030.00619.72
8.1.120.0030.00619.70
8.1.110.0040.00419.72
8.1.100.0030.00519.75
8.1.90.0000.00819.50
8.1.80.0060.00319.81
8.1.70.0040.00419.43
8.1.60.0030.00519.81
8.1.50.0030.01019.43
8.1.40.0090.00019.88
8.1.30.0000.00919.93
8.1.20.0080.00320.03
8.1.10.0040.00419.95
8.1.00.0000.00819.66
8.0.300.0090.00321.25
8.0.290.0000.00819.00
8.0.280.0000.00720.12
8.0.270.0050.00219.52
8.0.260.0040.00419.37
8.0.250.0080.00019.04
8.0.240.0040.00419.06
8.0.230.0050.00219.39
8.0.220.0000.00719.38
8.0.210.0090.00018.94
8.0.200.0040.00418.95
8.0.190.0060.00318.98
8.0.180.0090.00019.11
8.0.170.0060.00319.23
8.0.160.0080.00019.07
8.0.150.0030.00618.82
8.0.140.0040.00418.98
8.0.130.0030.00313.25
8.0.120.0060.00319.15
8.0.110.0040.00418.95
8.0.100.0080.00019.26
8.0.90.0040.00419.14
8.0.80.0040.01219.09
8.0.70.0000.00819.08
8.0.60.0030.00619.13
8.0.50.0060.00319.05
8.0.30.0050.01619.50
8.0.20.0110.00819.33
8.0.10.0030.00519.41
8.0.00.0100.01019.02
7.4.330.0050.00016.78
7.4.320.0030.00318.91
7.4.300.0030.00319.07
7.4.290.0040.00418.70
7.4.280.0090.00018.75
7.4.270.0040.00419.07
7.4.260.0040.00419.10
7.4.250.0060.00319.14
7.4.240.0060.00218.85
7.4.230.0070.00019.13
7.4.220.0100.01019.00
7.4.210.0190.00319.08
7.4.200.0040.00418.75
7.4.160.0100.00718.75
7.4.150.0130.00618.58
7.4.140.0110.00918.70
7.4.130.0110.01018.72
7.4.120.0140.00418.86
7.4.110.0070.01018.91
7.4.100.0100.01018.70
7.4.90.0100.01018.72
7.4.80.0110.01119.39
7.4.70.0030.01318.51
7.4.60.0170.00718.65
7.4.50.0090.00618.84
7.4.40.0130.00418.74
7.4.30.0170.00718.73
7.4.00.0070.01217.63
7.3.330.0000.00513.10
7.3.320.0050.00013.25
7.3.310.0040.00418.54
7.3.300.0040.00418.45
7.3.290.0100.00618.48
7.3.280.0110.00818.50
7.3.270.0090.00918.41
7.3.260.0160.00318.31
7.3.250.0100.00918.65
7.3.240.0120.00818.60
7.3.230.0180.00018.58
7.3.210.0100.01018.70
7.3.200.0140.00718.56
7.3.190.0100.00718.66
7.3.180.0080.00818.54
7.3.170.0070.01018.57
7.3.160.0190.00318.55
7.3.120.0140.00317.27
7.3.110.0070.01117.05
7.3.100.0060.00917.43
7.3.90.0050.00517.49
7.3.80.0060.00617.53
7.3.70.0000.01117.44
7.3.60.0030.01217.20
7.3.50.0060.01317.21
7.3.40.0060.01217.11
7.3.30.0030.00917.05
7.3.20.0030.00718.72
7.3.10.0130.00918.77
7.3.00.0070.00718.64
7.2.330.0110.00819.04
7.2.320.0070.01419.07
7.2.310.0000.01819.02
7.2.300.0000.01718.61
7.2.290.0100.00719.02
7.2.250.0100.00717.68
7.2.240.0100.01017.39
7.2.230.0030.01217.43
7.2.220.0030.01117.19
7.2.210.0000.01717.34
7.2.200.0040.01117.43
7.2.190.0070.01317.52
7.2.180.0100.00717.14
7.2.170.0090.00917.14
7.2.130.0130.00318.72
7.2.120.0070.00618.55
7.2.110.0070.01018.90
7.2.100.0030.00718.52
7.2.90.0090.00619.35
7.2.80.0130.00318.71
7.2.70.0060.00618.88
7.2.60.0050.00919.01
7.2.50.0030.01419.09
7.2.40.0080.00618.87
7.2.30.0040.00719.20
7.2.20.0150.01218.56
7.2.10.0000.01119.07
7.2.00.0090.00720.34
7.1.330.0100.00718.20
7.1.320.0060.00318.30
7.1.310.0070.00718.45
7.1.300.0040.00818.16
7.1.290.0040.01218.06
7.1.280.0090.00618.01
7.1.270.0030.01018.01
7.1.260.0000.01418.21
7.1.250.0090.00617.64
7.1.200.0070.00318.30
7.1.100.0070.00720.61
7.1.70.0050.00519.41
7.1.60.0030.02219.68
7.1.50.0120.00919.42
7.1.00.0030.07324.89
7.0.200.0520.00717.11
7.0.60.0100.06022.48
7.0.50.0030.07317.90
7.0.40.0070.08022.23
7.0.30.0400.07022.52
7.0.20.0200.08322.16
7.0.10.0100.06722.39
7.0.00.0170.08022.37
5.6.280.0030.03723.29
5.6.210.0200.07023.12
5.6.200.0070.06718.18
5.6.190.0030.04722.98
5.6.180.0300.04722.66
5.6.170.0170.04722.75
5.6.160.0030.08322.91
5.6.150.0000.07718.13
5.6.140.0070.08018.16
5.6.130.0100.04318.17
5.6.120.0130.07023.55
5.6.110.0130.08723.30
5.6.100.0070.08323.62
5.6.90.0100.09023.70
5.6.80.0070.08022.71
5.5.350.0300.07722.63
5.5.340.0130.07318.02
5.5.330.0070.08322.55
5.5.320.0030.08722.52
5.5.310.0130.04722.78
5.5.300.0070.08718.02
5.5.290.0070.07317.87
5.5.280.0170.07022.98
5.5.270.0030.06022.92
5.5.260.0030.04323.33
5.5.250.0070.07722.79
5.5.240.0300.06722.84

preferences:
73.72 ms | 401 KiB | 5 Q