3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = NumberFormatter::create('fr_CA', 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.0170.00320.55
8.3.50.0150.01523.10
8.3.40.0120.00320.26
8.3.30.0090.00920.59
8.3.20.0040.01121.67
8.3.10.0030.00525.30
8.3.00.0050.00521.13
8.2.180.0270.00718.75
8.2.170.0070.01122.96
8.2.160.0150.00321.78
8.2.150.0040.00424.18
8.2.140.0050.00524.66
8.2.130.0040.00426.16
8.2.120.0030.00721.99
8.2.110.0060.00321.78
8.2.100.0110.00619.38
8.2.90.0080.00020.67
8.2.80.0080.00019.50
8.2.70.0000.00919.50
8.2.60.0080.00019.80
8.2.50.0070.00719.25
8.2.40.0100.00821.51
8.2.30.0000.01119.97
8.2.20.0040.00419.71
8.2.10.0040.00419.97
8.2.00.0100.00319.50
8.1.280.0110.00725.92
8.1.270.0090.00023.39
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00625.46
8.1.230.0040.00819.23
8.1.220.0050.00319.53
8.1.210.0040.00419.29
8.1.200.0030.00718.97
8.1.190.0030.00619.10
8.1.180.0000.00819.41
8.1.170.0040.01120.39
8.1.160.0060.00323.45
8.1.150.0040.00820.34
8.1.140.0100.00019.41
8.1.130.0000.01019.75
8.1.120.0070.00019.66
8.1.110.0030.00719.51
8.1.100.0000.00719.67
8.1.90.0060.00619.48
8.1.80.0090.00319.61
8.1.70.0090.00319.49
8.1.60.0130.00819.76
8.1.50.0090.00919.21
8.1.40.0080.00019.75
8.1.30.0040.00819.79
8.1.20.0030.00619.95
8.1.10.0080.00019.71
8.1.00.0030.01019.59
8.0.300.0040.00419.21
8.0.290.0000.00918.75
8.0.280.0000.00719.98
8.0.270.0040.00419.20
8.0.260.0090.00019.17
8.0.250.0070.00018.82
8.0.240.0070.00319.15
8.0.230.0060.00318.75
8.0.220.0050.00518.86
8.0.210.0030.00718.86
8.0.200.0090.00319.04
8.0.190.0110.00518.79
8.0.180.0080.00918.86
8.0.170.0080.00318.96
8.0.160.0090.00618.71
8.0.150.0120.00418.54
8.0.140.0120.00418.79
8.0.130.0050.00013.41
8.0.120.0060.00318.77
8.0.110.0040.00418.87
8.0.100.0030.00618.71
8.0.90.0040.00419.12
8.0.80.0210.00918.80
8.0.70.0000.01018.96
8.0.60.0080.00319.14
8.0.50.0000.00818.70
8.0.30.0120.01219.07
8.0.20.0150.00719.39
8.0.10.0000.00819.21
8.0.00.0090.00818.85
7.4.330.0000.00615.00
7.4.320.0030.00618.47
7.4.300.0030.00318.71
7.4.290.0090.00618.60
7.4.280.0220.00318.77
7.4.270.0060.00618.79
7.4.260.0130.00318.82
7.4.250.0000.00918.62
7.4.240.0020.00618.70
7.4.230.0050.00518.78
7.4.220.0250.01618.73
7.4.210.0170.00718.59
7.4.200.0110.00018.88
7.4.160.0170.00718.59
7.4.150.0170.01018.34
7.4.140.0120.01018.47
7.4.130.0120.01218.52
7.4.120.0170.00418.67
7.4.110.0200.01218.47
7.4.100.0110.01118.41
7.4.90.0040.01418.61
7.4.80.0060.01219.39
7.4.70.0030.01418.57
7.4.60.0170.00818.61
7.4.50.0040.00418.59
7.4.40.0170.00318.63
7.4.30.0210.00318.58
7.4.00.0120.00616.83
7.3.330.0030.00313.15
7.3.320.0000.00513.18
7.3.310.0070.00018.39
7.3.300.0000.00718.27
7.3.290.0110.01118.47
7.3.280.0100.00918.37
7.3.270.0180.00718.43
7.3.260.0100.00818.39
7.3.250.0120.00518.59
7.3.240.0240.00418.24
7.3.230.0230.00318.39
7.3.210.0120.01118.43
7.3.200.0130.01019.39
7.3.190.0120.00918.17
7.3.180.0090.01118.81
7.3.170.0170.00518.52
7.3.160.0140.00718.82
7.3.120.0120.01216.56
7.3.110.0150.00716.61
7.3.100.0060.00916.68
7.3.90.0070.01316.60
7.3.80.0110.00416.85
7.3.70.0000.01516.84
7.3.60.0120.00416.73
7.3.50.0030.01316.53
7.3.40.0090.00616.58
7.3.30.0080.00816.83
7.3.20.0090.00618.07
7.3.10.0100.01018.20
7.3.00.0030.00918.19
7.2.330.0060.01218.29
7.2.320.0090.01218.76
7.2.310.0060.01218.32
7.2.300.0110.00718.47
7.2.290.0150.00618.32
7.2.250.0140.00916.75
7.2.240.0100.01416.82
7.2.230.0030.00716.91
7.2.220.0030.00717.13
7.2.210.0040.01416.83
7.2.200.0090.00616.61
7.2.190.0040.01116.74
7.2.180.0090.00916.66
7.2.170.0000.01516.95
7.2.00.0030.01221.78
7.1.330.0030.01317.78
7.1.320.0110.00317.59
7.1.310.0040.01117.88
7.1.300.0090.00617.55
7.1.290.0030.01517.77
7.1.280.0030.01517.70
7.1.270.0070.00717.55
7.1.260.0110.00417.75
7.1.100.0100.01020.39
7.1.70.0000.01019.09
7.1.60.0100.01719.40
7.1.50.0100.01618.80
7.1.00.0000.08024.67
7.0.200.0030.01018.72
7.0.140.0000.07724.32
7.0.110.0200.03722.09
7.0.100.0070.04022.03
7.0.90.0100.04322.10
7.0.80.0070.07021.88
7.0.70.0100.04321.96
7.0.60.0000.07022.15
7.0.50.0130.04721.96
7.0.40.0100.03321.70
7.0.30.0100.02721.86
7.0.20.0000.03721.74
7.0.10.0100.03321.69
7.0.00.0030.03721.95
5.6.280.0100.06323.26
5.6.260.0130.07722.74
5.6.250.0070.04022.63
5.6.240.0070.07322.65
5.6.230.0100.08022.64
5.6.220.0100.07022.72
5.6.210.0000.06322.80
5.6.200.0030.04322.78
5.6.190.0170.06722.73
5.6.180.0000.03722.72
5.6.170.0070.03722.34
5.6.160.0030.05022.73
5.6.150.0030.04322.70
5.6.140.0030.04022.75
5.6.130.0070.05322.87
5.6.120.0100.08322.64
5.6.110.0000.09722.74
5.6.100.0030.05022.74
5.6.90.0030.03322.68
5.6.80.0000.04021.92
5.6.70.0100.03721.98
5.6.60.0130.07022.11
5.6.50.0030.04022.14
5.6.40.0000.06021.89
5.6.30.0030.08022.09
5.6.20.0100.06322.14
5.6.10.0030.04321.95
5.6.00.0030.04022.04
5.5.380.0070.03717.61
5.5.370.0070.08317.47
5.5.360.0030.05317.52
5.5.350.0100.03717.48
5.5.340.0070.03318.13
5.5.330.0000.04317.99
5.5.320.0030.03717.98
5.5.310.0030.03718.16
5.5.300.0070.03718.10
5.5.290.0030.05718.16
5.5.280.0100.03717.98
5.5.270.0030.04718.14
5.5.260.0000.03717.88
5.5.250.0000.04317.80
5.5.240.0000.04017.41
5.5.230.0000.05317.24
5.5.220.0030.05317.47
5.5.210.0030.04017.38
5.5.200.0070.07317.14
5.5.190.0070.06317.50
5.5.180.0000.04017.33
5.5.160.0100.03017.12
5.5.150.0100.07317.21
5.5.140.0070.06717.19
5.5.130.0130.06717.36
5.5.120.0030.05017.11
5.5.110.0070.06317.33
5.5.100.0070.03317.10
5.5.90.0030.05017.13
5.5.80.0030.03717.34
5.5.70.0000.06717.00
5.5.60.0070.07317.34
5.5.50.0100.04017.37
5.5.40.0070.03316.99
5.5.30.0100.03017.13
5.5.20.0030.04017.11
5.5.10.0000.04017.11
5.5.00.0070.03317.10
5.4.450.0030.04321.42
5.4.440.0030.03321.42
5.4.430.0030.04721.13
5.4.420.0000.04321.53
5.4.410.0030.07321.25
5.4.400.0000.05721.27
5.4.390.0070.03320.82
5.4.380.0030.03321.05
5.4.370.0030.04021.21
5.4.360.0030.03721.26
5.4.350.0070.03021.13
5.4.340.0070.05020.98
5.4.320.0030.07721.01
5.4.310.0030.06721.30
5.4.300.0070.04321.00
5.4.290.0000.04721.04
5.4.280.0000.04021.26
5.4.270.0000.03721.05
5.4.260.0000.04321.00
5.4.250.0030.05721.05
5.4.240.0030.03721.08
5.4.230.0070.03320.82
5.4.220.0070.06021.08
5.4.210.0070.03320.71
5.4.200.0100.04721.08
5.4.190.0100.03021.27
5.4.180.0030.03721.25
5.4.170.0000.04021.04
5.4.160.0030.04320.79
5.4.150.0070.03321.18
5.4.140.0070.03718.57
5.4.130.0000.03018.46
5.4.120.0100.02718.50
5.4.110.0030.03018.70
5.4.100.0030.03018.29
5.4.90.0000.03318.44
5.4.80.0070.03018.68
5.4.70.0000.03018.68
5.4.60.0070.03018.24
5.4.50.0030.03318.28
5.4.40.0070.02718.46
5.4.30.0030.03018.57
5.4.20.0070.03018.46
5.4.10.0000.03318.28
5.4.00.0070.02717.93
5.3.290.0030.07714.73
5.3.280.0070.04014.42
5.3.270.0000.04014.48
5.3.260.0070.03314.53
5.3.250.0030.03714.50
5.3.240.0070.04014.46
5.3.230.0030.03014.42
5.3.220.0070.03014.46
5.3.210.0000.03714.41
5.3.200.0030.03014.45
5.3.190.0000.03314.45
5.3.180.0030.03314.41
5.3.170.0000.03314.48
5.3.160.0000.03314.62
5.3.150.0000.03714.58
5.3.140.0000.03714.40
5.3.130.0000.03314.56
5.3.120.0100.03014.33
5.3.110.0000.03314.43
5.3.100.0030.03014.00
5.3.90.0030.03013.92
5.3.80.0070.02714.03
5.3.70.0030.03013.91
5.3.60.0000.04013.89
5.3.50.0030.03013.90
5.3.40.0070.02713.77
5.3.30.0000.03313.92
5.3.20.0070.02713.71
5.3.10.0070.03013.52
5.3.00.0000.03013.70
5.2.170.0000.02712.02
5.2.160.0030.02312.02
5.2.150.0000.02712.02
5.2.140.0070.02712.02
5.2.130.0070.02312.02
5.2.120.0030.02312.02
5.2.110.0000.03312.02
5.2.100.0030.02312.02
5.2.90.0030.03012.02
5.2.80.0030.02312.02
5.2.70.0030.02312.02
5.2.60.0000.03012.02
5.2.50.0000.03312.02
5.2.40.0030.02312.02
5.2.30.0000.03012.02
5.2.20.0000.02712.02
5.2.10.0070.02312.02
5.2.00.0070.02012.02
5.1.60.0070.01712.02
5.1.50.0000.03312.02
5.1.40.0000.02312.02
5.1.30.0000.02312.02
5.1.20.0000.02312.02
5.1.10.0030.02012.02
5.1.00.0100.04312.02
5.0.50.0030.03012.02
5.0.40.0070.04012.02
5.0.30.0030.06012.02
5.0.20.0000.04312.02
5.0.10.0070.04012.02
5.0.00.0030.02712.02
4.4.90.0000.01712.02
4.4.80.0070.01012.02
4.4.70.0030.01312.02
4.4.60.0030.01012.02
4.4.50.0030.01312.02
4.4.40.0000.02312.02
4.4.30.0030.01012.02
4.4.20.0000.01312.02
4.4.10.0000.01712.02
4.4.00.0000.04012.02
4.3.110.0000.03012.02
4.3.100.0030.02712.02
4.3.90.0000.02312.02
4.3.80.0000.04312.02
4.3.70.0000.02012.02
4.3.60.0000.01712.02
4.3.50.0100.02312.02
4.3.40.0030.03012.02
4.3.30.0000.03712.02
4.3.20.0000.01712.02
4.3.10.0030.02312.02
4.3.00.0030.01012.02

preferences:
49.8 ms | 401 KiB | 5 Q