3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = new NumberFormatter('en', NumberFormatter::DURATION); var_dump($fmt->format(12345)); //$fmt->setTextAttribute(NumberFormatter::DEFAULT_RULESET, "%in-numerals"); //var_dump($fmt->format(12345)); $fmt->setTextAttribute(NumberFormatter::DEFAULT_RULESET, "%with-words"); var_dump($fmt->format(12345));

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.0090.00620.81
8.3.50.0130.01023.15
8.3.40.0120.00320.38
8.3.30.0040.01120.60
8.3.20.0040.00422.19
8.3.10.0060.00325.19
8.3.00.0080.00021.38
8.2.180.0160.00319.00
8.2.170.0040.01122.96
8.2.160.0090.00922.07
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0080.00324.11
8.2.110.0000.01021.55
8.2.100.0060.00619.84
8.2.90.0000.00820.98
8.2.80.0090.00019.50
8.2.70.0090.00019.63
8.2.60.0050.00520.18
8.2.50.0040.00419.63
8.2.40.0000.00922.07
8.2.30.0040.00420.23
8.2.20.0040.00419.88
8.2.10.0050.00320.36
8.2.00.0040.00419.89
8.1.280.0100.00625.92
8.1.270.0030.00623.86
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0070.00325.54
8.1.230.0040.00823.18
8.1.220.0000.00819.77
8.1.210.0040.00419.42
8.1.200.0030.00619.50
8.1.190.0030.00619.47
8.1.180.0040.00419.43
8.1.170.0090.00020.91
8.1.160.0060.00323.59
8.1.150.0000.00820.66
8.1.140.0000.00919.63
8.1.130.0040.00421.83
8.1.120.0000.00819.89
8.1.110.0030.00619.89
8.1.100.0000.00819.97
8.1.90.0030.00619.47
8.1.80.0000.00819.89
8.1.70.0000.00919.84
8.1.60.0040.00419.97
8.1.50.0000.00819.56
8.1.40.0000.00819.58
8.1.30.0040.00419.97
8.1.20.0000.00920.09
8.1.10.0060.00319.77
8.1.00.0030.00619.68
8.0.300.0040.00419.22
8.0.290.0000.00818.88
8.0.280.0040.00420.08
8.0.270.0050.00219.50
8.0.260.0000.00919.39
8.0.250.0000.00718.86
8.0.240.0000.00819.09
8.0.230.0040.00419.13
8.0.220.0000.00719.02
8.0.210.0000.00718.88
8.0.200.0030.00319.05
8.0.190.0040.00419.09
8.0.180.0040.00418.94
8.0.170.0080.00019.03
8.0.160.0040.00719.02
8.0.150.0060.00318.78
8.0.140.0000.00819.04
8.0.130.0030.00313.41
8.0.120.0000.00919.28
8.0.110.0040.00419.26
8.0.100.0000.00819.43
8.0.90.0000.00819.33
8.0.80.0190.00419.05
8.0.70.0000.00919.21
8.0.60.0080.00019.34
8.0.50.0040.00419.19
8.0.30.0110.00919.43
8.0.20.0150.00519.31
8.0.10.0000.00919.14
8.0.00.0110.01118.96
7.4.330.0050.00015.00
7.4.320.0070.00018.94
7.4.300.0070.00018.93
7.4.290.0000.00719.04
7.4.280.0030.00718.91
7.4.270.0000.00718.84
7.4.260.0070.00019.01
7.4.250.0090.00018.99
7.4.240.0040.00319.00
7.4.230.0040.00418.94
7.4.220.0120.01218.99
7.4.210.0120.00419.03
7.4.200.0050.00518.99
7.4.160.0060.01018.79
7.4.150.0120.01518.73
7.4.140.0110.00818.73
7.4.130.0110.00618.69
7.4.120.0090.01118.69
7.4.110.0040.01418.64
7.4.100.0110.00818.75
7.4.90.0110.00718.73
7.4.80.0060.01519.39
7.4.70.0090.00918.73
7.4.60.0110.00618.48
7.4.50.0030.00618.90
7.4.40.0100.01018.76
7.4.30.0070.01018.90
7.4.00.0140.00317.29
7.3.330.0060.00013.12
7.3.320.0060.00013.17
7.3.310.0000.00718.55
7.3.300.0080.00018.55
7.3.290.0090.00618.47
7.3.280.0060.01018.59
7.3.270.0200.00018.78
7.3.260.0070.01118.75
7.3.250.0060.01118.73
7.3.240.0060.01818.87
7.3.230.0120.00618.70
7.3.210.0130.00418.55
7.3.200.0060.01819.39
7.3.190.0060.01218.56
7.3.180.0160.00318.50
7.3.170.0030.01918.57
7.3.160.0070.00918.47
7.3.10.0100.00318.48
7.3.00.0100.00918.40
7.2.330.0070.01318.62
7.2.320.0000.01818.82
7.2.310.0070.01118.92
7.2.300.0150.00319.11
7.2.290.0070.01319.04
7.2.130.0100.01018.78
7.2.120.0060.00718.94
7.2.110.0110.00618.70
7.2.100.0080.00518.93
7.2.90.0110.00618.82
7.2.80.0050.00818.95
7.2.70.0060.01018.97
7.2.60.0050.00918.85
7.2.50.0070.00718.90
7.2.40.0080.00819.04
7.2.30.0060.01019.02
7.2.20.0080.00718.87
7.2.10.0080.01218.86
7.2.00.0080.00519.75
7.1.250.0060.00917.85
7.1.240.0110.00417.98
7.1.230.0150.00318.02
7.1.220.0100.00717.70
7.1.210.0150.00318.14
7.1.200.0080.00917.84
7.1.190.0080.01217.96
7.1.180.0130.00517.91
7.1.170.0160.00017.92
7.1.160.0150.00317.96
7.1.150.0060.00917.78
7.1.140.0070.00718.05
7.1.130.0090.00917.86
7.1.120.0160.00317.86
7.1.110.0170.00018.11
7.1.100.0070.01019.27
7.1.90.0100.00318.29
7.1.80.0060.01017.89
7.1.70.0090.00918.79
7.1.60.0080.01318.79
7.1.50.0080.01018.77
7.1.40.0130.00618.02
7.1.30.0150.00318.15
7.1.20.0070.01018.05
7.1.10.0090.00318.01
7.1.00.0060.04321.55
7.0.330.0110.00717.78
7.0.320.0060.00617.66
7.0.310.0160.00317.69
7.0.300.0140.00317.77
7.0.290.0100.00417.47
7.0.280.0070.01017.65
7.0.270.0150.00317.71
7.0.260.0090.00617.50
7.0.250.0090.00317.88
7.0.240.0100.00717.92
7.0.230.0100.00717.54
7.0.220.0070.01018.01
7.0.210.0110.00817.75
7.0.200.0100.00218.57
7.0.190.0100.01017.51
7.0.180.0070.01417.86
7.0.170.0120.00317.74
7.0.160.0040.01517.83
7.0.150.0090.00617.56
7.0.140.0050.04221.41
7.0.130.0150.00417.48
7.0.120.0070.01117.61
7.0.110.0040.00817.70
7.0.100.0110.00317.41
7.0.90.0110.00717.47
7.0.80.0140.00717.44
7.0.70.0160.00317.40
7.0.60.0110.04319.83
7.0.50.0050.04817.91
7.0.40.0080.04519.03
7.0.30.0230.04518.92
7.0.20.0170.02318.93
7.0.10.0070.04918.90
7.0.00.0100.03118.86
5.6.380.0070.00717.04
5.6.370.0070.01016.68
5.6.360.0130.00916.72
5.6.350.0090.00616.59
5.6.340.0130.00916.77
5.6.330.0090.00916.76
5.6.320.0100.01016.83
5.6.310.0140.00716.60
5.6.300.0110.00716.69
5.6.290.0080.00817.22
5.6.280.0100.03819.93
5.6.270.0100.00616.61
5.6.260.0040.01116.73
5.6.250.0000.01216.38
5.6.240.0000.01416.60
5.6.230.0100.00716.56
5.6.220.0040.01216.43
5.6.210.0110.04319.57
5.6.200.0080.04717.24
5.6.190.0030.03519.38
5.6.180.1720.02819.80
5.6.170.0170.04419.62
5.6.160.0120.02719.42
5.6.150.0090.03917.33
5.6.140.0100.04417.32
5.6.130.0080.02817.26
5.6.120.0040.04919.90
5.6.110.0210.03819.93
5.6.100.0100.04619.92
5.6.90.0050.05219.90
5.6.80.0050.04419.72
5.6.70.1680.02319.47
5.6.60.0080.00316.15
5.6.50.0040.01516.63
5.6.40.0150.00316.47
5.6.30.0030.01016.25
5.6.20.0070.01016.25
5.6.10.0060.01216.47
5.6.00.0030.01016.64
5.5.380.0040.00810.90
5.5.370.0030.01011.06
5.5.360.0040.00710.90
5.5.350.0000.04016.76
5.5.340.0070.01914.41
5.5.330.0100.04016.63
5.5.320.0120.04216.74
5.5.310.0150.03316.71
5.5.300.0050.04314.42
5.5.290.0020.03214.39
5.5.280.0040.02517.01
5.5.270.0080.04317.05
5.5.260.0080.04017.00
5.5.250.0060.03117.05
5.5.240.0070.02616.74
5.5.230.0000.01010.90
5.5.220.0040.00810.90
5.5.210.0100.00010.90
5.5.200.0070.00410.90
5.5.190.0000.00610.90
5.5.180.0040.00810.90
5.5.170.0030.01010.90
5.5.160.0030.00710.90
5.5.150.0030.00610.90
5.5.140.0070.00410.90
5.5.130.0000.01210.90
5.5.120.0000.00910.90
5.5.110.0090.00310.90
5.5.100.0110.00010.90
5.5.90.0030.00310.90
5.5.80.0060.00610.90
5.5.70.0080.00010.90
5.5.60.0100.00010.90
5.5.50.0000.00810.90
5.5.40.0090.00310.90
5.5.30.0000.01010.90
5.5.20.0040.00710.90
5.5.10.0040.00710.90
5.5.00.0030.00610.90
5.4.450.0430.03316.19
5.4.440.0420.03516.17
5.4.430.0500.03916.19
5.4.420.0380.00016.25
5.4.410.0450.00316.09
5.4.400.0370.00216.07
5.4.390.0330.00115.95
5.4.380.0400.00415.92
5.4.370.0350.00316.00
5.4.360.0350.00015.95
5.4.350.0380.00015.99
5.4.340.0040.02011.43
5.4.330.0060.00610.90
5.4.320.0060.02011.68
5.4.310.0020.02511.67
5.4.300.0010.02611.68
5.4.290.0040.02311.68
5.4.280.0030.02011.63
5.4.270.0030.02311.62
5.4.260.0070.02011.63
5.4.250.0050.02111.62
5.4.240.0040.02111.63
5.4.230.0060.02011.62
5.4.220.0020.02411.62
5.4.210.0060.02111.62
5.4.200.0030.02011.62
5.4.190.0040.01911.62
5.4.180.0060.02511.62
5.4.170.0050.02111.63
5.4.160.0070.02211.62
5.4.150.0080.01911.62
5.4.140.0050.02111.46
5.4.130.0050.02011.46
5.4.120.0050.02111.43
5.4.110.0040.02211.43
5.4.100.0020.02211.43
5.4.90.0060.02211.43
5.4.80.0080.01911.43
5.4.70.0050.02111.43
5.4.60.0020.02411.43
5.4.50.0030.02411.43
5.4.40.0040.02111.42
5.4.30.0040.02211.42
5.4.20.0040.02211.43
5.4.10.0070.02111.43
5.4.00.0020.02411.17
5.3.290.0090.02311.85
5.3.280.0020.02311.80
5.3.270.0070.02311.81
5.3.260.0030.02111.81
5.3.250.0110.01511.81
5.3.240.0060.02111.81
5.3.230.0070.01911.80
5.3.220.0050.02211.79
5.3.210.0040.02211.79
5.3.200.0040.02111.79
5.3.190.0050.02311.79
5.3.180.0040.02111.79
5.3.170.0050.01911.79
5.3.160.0030.02611.79
5.3.150.0050.02011.79
5.3.140.0030.02011.78
5.3.130.0040.02311.78
5.3.120.0040.02211.78
5.3.110.0060.02311.78
5.3.100.0060.02111.51
5.3.90.0060.01811.49
5.3.80.0050.02111.49
5.3.70.0050.02111.49
5.3.60.0050.02411.48
5.3.50.0030.02011.45
5.3.40.0050.02111.45
5.3.30.0030.02111.42
5.3.20.0040.02211.31
5.3.10.0060.02011.30
5.3.00.0030.02111.29
5.2.170.0040.01810.04
5.2.160.0040.01710.04
5.2.150.0040.02210.04
5.2.140.0050.01610.04
5.2.130.0040.01810.02
5.2.120.0030.01710.02
5.2.110.0040.01610.02
5.2.100.0040.01710.02
5.2.90.0050.02010.02
5.2.80.0040.01810.02
5.2.70.0040.01810.02
5.2.60.0020.0209.99
5.2.50.0020.0219.98
5.2.40.0020.0209.97
5.2.30.0050.0149.96
5.2.20.0030.0189.95
5.2.10.0030.0189.91
5.2.00.0040.0169.84
5.1.60.0040.0159.48
5.1.50.0020.0169.48
5.1.40.0060.0129.47
5.1.30.0040.0139.65
5.1.20.0040.0179.66
5.1.10.0060.0199.52
5.1.00.0040.0139.52
5.0.50.0060.0108.76
5.0.40.0020.0128.69
5.0.30.0040.0238.60
5.0.20.0020.0138.58
5.0.10.0030.0138.57
5.0.00.0020.0188.57
4.4.90.0030.0117.84
4.4.80.0030.0077.83
4.4.70.0020.0117.82
4.4.60.0020.0127.83
4.4.50.0010.0117.83
4.4.40.0010.0167.80
4.4.30.0010.0127.83
4.4.20.0040.0087.87
4.4.10.0010.0117.88
4.4.00.0030.0137.83
4.3.110.0030.0097.78
4.3.100.0030.0097.78
4.3.90.0030.0097.77
4.3.80.0020.0147.74
4.3.70.0020.0087.76
4.3.60.0040.0087.76
4.3.50.0020.0107.76
4.3.40.0020.0137.72
4.3.30.0010.0107.09
4.3.20.0010.0097.08
4.3.10.0020.0097.06
4.3.00.0120.0129.06

preferences:
39.85 ms | 400 KiB | 5 Q