3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fmt = numfmt_create( 'de_DE', NumberFormatter::DECIMAL ); $data = numfmt_format($fmt, 1234567.891234567890000); if(intl_is_failure(numfmt_get_error_code($fmt))) { var_dump(numfmt_get_error_message()); report_error("Formatter error"); }

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.0070.01520.18
8.3.60.0150.00018.50
8.3.50.0160.00622.04
8.3.40.0170.00320.07
8.3.30.0140.00020.23
8.3.20.0000.00821.89
8.3.10.0080.00024.98
8.3.00.0000.00824.27
8.2.190.0100.00618.63
8.2.180.0040.01118.38
8.2.170.0030.01222.96
8.2.160.0000.01523.61
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0110.00026.16
8.2.120.0060.00319.25
8.2.110.0030.00722.05
8.2.100.0080.00419.50
8.2.90.0040.00420.45
8.2.80.0080.00019.13
8.2.70.0000.01119.24
8.2.60.0000.00819.53
8.2.50.0030.00619.25
8.2.40.0080.00421.09
8.2.30.0080.00021.45
8.2.20.0000.00819.46
8.2.10.0030.00619.69
8.2.00.0000.00819.75
8.1.280.0070.00725.92
8.1.270.0060.00321.75
8.1.260.0030.00526.35
8.1.250.0030.00628.09
8.1.240.0090.00025.33
8.1.230.0100.00319.36
8.1.220.0050.00319.29
8.1.210.0060.00319.11
8.1.200.0070.00418.97
8.1.190.0040.00419.00
8.1.180.0040.00419.14
8.1.170.0000.00820.21
8.1.160.0050.00323.43
8.1.150.0000.00820.27
8.1.140.0040.00419.15
8.1.130.0020.00519.41
8.1.120.0090.00019.27
8.1.110.0000.00819.08
8.1.100.0050.00219.41
8.1.90.0040.00419.17
8.1.80.0000.00718.96
8.1.70.0000.00719.05
8.1.60.0000.00919.13
8.1.50.0030.00519.40
8.1.40.0050.00319.39
8.1.30.0000.00919.46
8.1.20.0000.00819.43
8.1.10.0080.00019.20
8.1.00.0000.00819.36
8.0.300.0000.00818.77
8.0.290.0060.00618.38
8.0.280.0050.00219.77
8.0.270.0040.00418.97
8.0.260.0000.00718.90
8.0.250.0050.00318.45
8.0.240.0080.00018.64
8.0.230.0050.00518.71
8.0.220.0080.00018.66
8.0.210.0040.00418.71
8.0.200.0000.00818.76
8.0.190.0080.00018.75
8.0.180.0040.00418.70
8.0.170.0040.00418.71
8.0.160.0030.00518.60
8.0.150.0030.00618.47
8.0.140.0040.00418.60
8.0.130.0000.00613.32
8.0.120.0030.00518.81
8.0.110.0030.00518.80
8.0.100.0030.00518.43
8.0.90.0000.00718.71
8.0.80.0090.00618.75
8.0.70.0040.00418.59
8.0.60.0000.00818.60
8.0.50.0040.00418.57
8.0.30.0080.00918.91
8.0.20.0110.00818.86
8.0.10.0040.00418.71
8.0.00.0090.00918.61
7.4.330.0030.00315.08
7.4.320.0000.00718.45
7.4.300.0040.00418.38
7.4.290.0040.00418.40
7.4.280.0040.00418.32
7.4.270.0030.00318.52
7.4.260.0070.00018.50
7.4.250.0000.00818.41
7.4.240.0000.00818.42
7.4.230.0040.00418.49
7.4.220.0160.00918.48
7.4.210.0040.01118.45
7.4.200.0070.00018.58
7.4.160.0030.01218.25
7.4.150.0140.00418.23
7.4.140.0140.00618.22
7.4.130.0030.01718.29
7.4.120.0050.01318.22
7.4.110.0070.01018.09
7.4.100.0110.01518.11
7.4.90.0090.00918.41
7.4.80.0100.00719.39
7.4.70.0130.00618.19
7.4.60.0070.01018.29
7.4.50.0000.00518.04
7.4.40.0100.00718.31
7.4.30.0100.01418.35
7.4.00.0170.00016.62
7.3.330.0020.00213.14
7.3.320.0050.00313.10
7.3.310.0030.00317.93
7.3.300.0000.00718.09
7.3.290.0000.00718.04
7.3.280.0130.00718.03
7.3.270.0080.01117.81
7.3.260.0090.00917.91
7.3.250.0090.00918.24
7.3.240.0170.00318.10
7.3.230.0110.01118.09
7.3.210.0060.01318.18
7.3.200.0130.00618.16
7.3.190.0100.01018.06
7.3.180.0100.00718.33
7.3.170.0100.00718.02
7.3.160.0100.01018.12
7.3.10.0070.00618.13
7.3.00.0050.01118.19
7.2.330.0130.00718.23
7.2.320.0090.00918.16
7.2.310.0030.01918.39
7.2.300.0070.01118.21
7.2.290.0090.00918.54
7.2.130.0030.00918.51
7.2.120.0060.01018.38
7.2.110.0070.00518.43
7.2.100.0070.00518.37
7.2.90.0060.00318.70
7.2.80.0030.00818.44
7.2.70.0030.00718.44
7.2.60.0060.01018.55
7.2.50.0050.01018.43
7.2.40.0100.00518.46
7.2.30.0050.01018.39
7.2.20.0080.00718.50
7.2.10.0030.00718.35
7.2.00.0110.00419.51
7.1.250.0020.01317.67
7.1.200.0000.01217.62
7.1.100.0070.00319.96
7.1.70.0000.01019.18
7.1.60.0060.00919.18
7.1.50.0070.01119.06
7.1.00.0070.07324.46
7.0.200.0230.00318.56
7.0.60.0170.07721.79
7.0.50.0070.04317.74
7.0.40.0030.09321.88
7.0.30.0230.07021.57
7.0.20.0430.07021.69
7.0.10.0100.07021.83
7.0.00.0030.05721.79
5.6.280.0000.05022.66
5.6.210.0130.07722.40
5.6.200.0030.08718.16
5.6.190.0030.04322.25
5.6.180.3930.05021.91
5.6.170.0230.05021.89
5.6.160.0000.06022.03
5.6.150.0000.04318.14
5.6.140.0070.05718.14
5.6.130.0070.08718.16
5.6.120.0070.06022.72
5.6.110.0130.08022.68
5.6.100.0030.04722.86
5.6.90.0030.05022.95
5.6.80.0100.03722.17
5.5.350.0230.05722.24
5.5.340.0000.05318.01
5.5.330.0030.04721.70
5.5.320.3030.04022.04
5.5.310.0270.05322.03
5.5.300.0070.04317.94
5.5.290.0100.06017.94
5.5.280.0070.08722.36
5.5.270.0100.03722.43
5.5.260.0170.07322.68
5.5.250.0170.06722.28
5.5.240.3730.04022.04
5.4.450.0770.06321.23
5.4.440.0900.08321.05
5.4.430.0930.06021.27
5.4.420.0800.06021.12
5.4.410.0730.06321.13
5.4.400.0870.05320.91
5.4.390.0800.05320.67
5.4.380.0900.05720.94
5.4.370.0830.05720.64
5.4.360.0800.06020.65
5.4.350.0100.05320.90
5.4.340.0200.05020.95
5.4.320.0000.06320.93
5.4.310.0730.06020.89
5.4.300.0700.06020.84
5.4.290.0830.05720.79
5.4.280.0730.05720.69
5.4.270.0830.05320.90
5.4.260.0930.06020.95
5.4.250.0700.06320.82
5.4.240.0830.06720.92
5.4.230.1070.05720.78
5.4.220.0870.06020.96
5.4.210.0670.05720.67
5.4.200.0870.04318.25
5.4.190.0800.05320.83
5.4.180.0600.05720.66
5.4.170.0770.04320.58
5.4.160.0270.06021.01
5.4.150.0130.05020.57
5.4.140.0670.06318.02
5.4.130.0770.05318.06
5.4.120.0770.04018.38
5.4.110.0700.05018.18
5.4.100.0770.04718.04
5.4.90.0770.05018.04
5.4.80.0670.05018.02
5.4.70.0770.05718.03
5.4.60.0230.06018.10
5.4.50.0100.03718.11
5.4.40.0230.07718.10
5.4.30.0270.04318.20
5.4.20.0330.06018.07

preferences:
46.97 ms | 401 KiB | 5 Q