3v4l.org

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

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.0060.01019.25
8.3.50.0130.00823.13
8.3.40.0070.01020.61
8.3.30.0040.01220.77
8.3.20.0000.00822.34
8.3.10.0040.00425.48
8.3.00.0050.00522.22
8.2.180.0070.01020.70
8.2.170.0090.00622.96
8.2.160.0040.01222.38
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0000.00826.16
8.2.120.0030.00522.33
8.2.110.0110.00023.25
8.2.100.0060.00620.30
8.2.90.0100.00021.23
8.2.80.0000.00819.88
8.2.70.0040.00720.00
8.2.60.0030.00620.30
8.2.50.0040.00419.88
8.2.40.0070.00321.63
8.2.30.0030.00522.50
8.2.20.0060.00320.04
8.2.10.0040.00420.41
8.2.00.0040.00420.31
8.1.280.0040.01125.92
8.1.270.0100.00720.88
8.1.260.0040.00426.35
8.1.250.0000.01028.09
8.1.240.0100.00321.46
8.1.230.0090.00319.91
8.1.220.0030.00620.16
8.1.210.0070.00319.60
8.1.200.0060.00319.61
8.1.190.0030.00619.80
8.1.180.0000.00819.90
8.1.170.0030.00620.90
8.1.160.0040.00422.66
8.1.150.0080.00020.86
8.1.140.0000.00921.79
8.1.130.0040.00420.15
8.1.120.0080.00019.98
8.1.110.0030.00620.04
8.1.100.0000.00920.08
8.1.90.0040.00420.14
8.1.80.0030.00620.03
8.1.70.0080.00019.64
8.1.60.0080.00020.19
8.1.50.0030.00620.23
8.1.40.0030.01020.09
8.1.30.0000.00920.21
8.1.20.0090.00020.21
8.1.10.0000.00919.97
8.1.00.0040.00820.13
8.0.300.0030.00519.04
8.0.290.0030.00519.00
8.0.280.0040.00420.37
8.0.270.0040.00419.48
8.0.260.0000.00719.57
8.0.250.0080.00019.31
8.0.240.0060.00319.46
8.0.230.0000.00819.11
8.0.220.0030.00619.36
8.0.210.0030.00519.19
8.0.200.0040.00419.43
8.0.190.0050.00319.21
8.0.180.0000.00819.32
8.0.170.0040.00419.26
8.0.160.0000.00819.08
8.0.150.0050.00318.94
8.0.140.0030.00619.14
8.0.130.0060.00013.29
8.0.120.0000.00919.51
8.0.110.0040.00419.48
8.0.100.0030.00619.23
8.0.90.0030.00519.20
8.0.80.0060.01019.47
8.0.70.0060.00319.49
8.0.60.0000.00819.32
8.0.50.0030.00519.38
8.0.30.0040.01319.27
8.0.20.0120.01019.69
8.0.10.0050.00319.28
8.0.00.0100.01019.18
7.4.330.0000.00516.69
7.4.320.0000.00718.82
7.4.300.0070.00019.01
7.4.290.0040.00419.07
7.4.280.0000.00819.18
7.4.270.0000.00819.12
7.4.260.0070.00019.15
7.4.250.0040.00419.08
7.4.240.0070.00119.11
7.4.230.0040.00419.08
7.4.220.0150.00619.02
7.4.210.0100.00719.02
7.4.200.0070.00419.25
7.4.160.0120.00618.95
7.4.150.0150.01118.98
7.4.140.0120.00919.02
7.4.130.0120.01818.77
7.4.120.0100.00818.83
7.4.110.0030.01618.75
7.4.100.0150.01518.83
7.4.90.0030.02318.80
7.4.80.0060.01319.39
7.4.70.0120.00618.91
7.4.60.0090.01218.95
7.4.50.0110.00719.06
7.4.40.0120.00919.00
7.4.30.0090.01218.93
7.4.00.0030.01217.52
7.3.330.0080.00013.03
7.3.320.0060.00313.16
7.3.310.0030.00518.76
7.3.300.0030.00518.84
7.3.290.0070.01118.67
7.3.280.0110.00718.64
7.3.270.0120.00618.73
7.3.260.0150.01318.83
7.3.240.0070.01618.79
7.3.230.0170.01218.81
7.3.210.0060.01319.00
7.3.200.0100.01318.72
7.3.190.0120.00618.97
7.3.180.0100.00718.81
7.3.170.0040.01418.79
7.3.160.0060.01218.80
7.3.00.0040.01018.93
7.2.330.0070.01518.83
7.2.320.0120.00919.30
7.2.310.0050.01419.04
7.2.300.0150.00419.38
7.2.290.0070.01319.36
7.2.130.0060.01219.34
7.2.120.0070.01019.13
7.2.110.0070.00319.36
7.2.100.0000.01319.13
7.2.90.0070.00719.35
7.2.80.0100.01019.19
7.2.70.0070.00319.23
7.2.60.0090.00519.21
7.2.50.0110.00419.48
7.2.40.0030.01119.49
7.2.30.0120.00419.40
7.2.20.0030.01019.43
7.2.10.0180.00019.26
7.2.00.0030.01320.47
7.1.250.0100.01018.32
7.1.240.0060.00618.27
7.1.230.0070.00318.47
7.1.220.0030.00718.22
7.1.210.0070.01018.48
7.1.200.0030.01018.56
7.1.190.0030.00918.55
7.1.180.0030.01018.33
7.1.170.0030.00918.06
7.1.160.0040.01118.07
7.1.150.0110.00718.30
7.1.140.0110.00417.95
7.1.130.0060.01018.25
7.1.120.0100.00718.29
7.1.110.0030.00818.34
7.1.100.0080.00519.56
7.1.90.0090.00618.21
7.1.80.0100.01018.26
7.1.70.0050.00618.98
7.1.60.0090.00919.11
7.1.50.0100.00718.89
7.1.40.0060.01018.53
7.1.30.0060.00318.37
7.1.20.0030.00918.36
7.1.10.0060.01318.33
7.1.00.0050.04021.66
7.0.330.0040.00418.31
7.0.320.0090.00318.17
7.0.310.0000.01318.14
7.0.300.0070.00717.82
7.0.290.0030.01418.27
7.0.280.0070.01018.07
7.0.270.0040.01118.13
7.0.260.0080.00818.31
7.0.250.0130.00318.16
7.0.240.0060.00918.16
7.0.230.0060.00317.98
7.0.220.0060.00918.26
7.0.210.0060.01218.09
7.0.200.0020.00918.64
7.0.190.0050.00518.12
7.0.180.0130.00317.87
7.0.170.0090.00918.35
7.0.160.0070.00318.04
7.0.150.0040.00718.25
7.0.140.0070.00718.12
7.0.130.0130.00317.76
7.0.120.0120.00417.82
7.0.110.0060.00317.83
7.0.100.0110.00418.02
7.0.90.0040.01118.11
7.0.80.0080.00317.98
7.0.70.0000.01418.16
7.0.60.0080.03820.25
7.0.50.0080.04317.78
7.0.40.0050.02719.09
7.0.30.0220.02819.06
7.0.20.0130.03019.24
7.0.10.0050.05219.10
7.0.00.0100.04019.17
5.6.380.0070.00716.71
5.6.370.0000.01216.84
5.6.360.0090.00616.84
5.6.350.0030.01317.15
5.6.340.0030.01016.75
5.6.330.0040.01116.79
5.6.320.0030.01317.18
5.6.310.0070.00717.13
5.6.300.0060.00316.75
5.6.290.0070.00317.01
5.6.280.0100.03720.17
5.6.270.0040.00817.02
5.6.260.0030.01017.21
5.6.250.0030.01017.03
5.6.240.0000.01016.73
5.6.230.0040.00716.83
5.6.220.0040.01417.03
5.6.210.0080.04620.02
5.6.200.0040.04717.53
5.6.190.0030.03819.89
5.6.180.0280.03720.01
5.6.170.0200.02219.95
5.6.160.0070.02520.09
5.6.150.0070.04417.47
5.6.140.0050.03717.58
5.6.130.0070.04417.46
5.6.120.0080.02920.26
5.6.110.0100.03020.19
5.6.100.0050.04220.36
5.6.90.0070.04520.44
5.6.80.0090.03519.97
5.6.70.0040.01217.04
5.6.60.0030.01016.79
5.6.50.0030.01316.84
5.6.40.0120.00416.97
5.6.30.0130.00316.76
5.6.20.0060.00617.01
5.6.10.0000.01516.87
5.6.00.0000.01416.65
5.5.380.0040.00710.78
5.5.370.0100.00310.77
5.5.360.0040.00810.51
5.5.350.0050.04616.86
5.5.340.0100.03514.33
5.5.330.0030.03716.62
5.5.320.0170.01516.69
5.5.310.0110.02816.78
5.5.300.0050.02014.38
5.5.290.0100.02314.45
5.5.280.0120.04217.18
5.5.270.0030.02317.19
5.5.260.0130.04216.92
5.5.250.0050.02816.72
5.5.240.0050.04716.87
5.5.230.0040.00410.79
5.5.220.0030.00610.81
5.5.210.0040.00410.72
5.5.200.0060.00610.51
5.5.190.0070.00010.80
5.5.180.0060.00310.73
5.5.170.0040.00710.84
5.5.160.0030.00610.81
5.5.150.0030.00610.66
5.5.140.0030.00610.86
5.5.130.0070.00310.84
5.5.120.0000.00711.01
5.5.110.0040.00410.94
5.5.100.0090.00310.48
5.5.90.0030.01010.87
5.5.80.0040.00410.45
5.5.70.0070.00410.54
5.5.60.0050.00310.62
5.5.50.0060.00610.75
5.5.40.0120.00010.61
5.5.30.0000.00910.86
5.5.20.0070.00010.82
5.5.10.0000.01110.88
5.5.00.0060.00610.76

preferences:
62.53 ms | 401 KiB | 5 Q