3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new \NumberFormatter("pt_BR", \NumberFormatter::DECIMAL); $a->setAttribute(\NumberFormatter::MIN_FRACTION_DIGITS, 2); echo $a->format(12345.107);

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.0130.00618.38
8.3.50.0150.01022.99
8.3.40.0000.01520.09
8.3.30.0140.00019.93
8.3.20.0120.00621.71
8.3.10.0030.00525.03
8.3.00.0080.00021.41
8.2.180.0090.00620.17
8.2.170.0090.00922.96
8.2.160.0120.00921.77
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00320.96
8.2.120.0060.00326.35
8.2.110.0080.00321.89
8.2.100.0040.00819.66
8.2.90.0040.00419.89
8.2.80.0050.00319.77
8.2.70.0030.00619.25
8.2.60.0040.00419.62
8.2.50.0000.01119.13
8.2.40.0030.00523.82
8.2.30.0040.00421.94
8.2.20.0040.00419.57
8.2.10.0040.00419.71
8.2.00.0020.00519.65
8.1.280.0110.00725.92
8.1.270.0090.00921.61
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0100.00025.11
8.1.230.0120.00025.16
8.1.220.0000.00919.51
8.1.210.0100.00522.13
8.1.200.0000.00918.98
8.1.190.0000.00818.62
8.1.180.0050.00519.28
8.1.170.0040.00420.34
8.1.160.0070.00022.01
8.1.150.0000.00720.24
8.1.140.0080.00021.17
8.1.130.0040.00419.29
8.1.120.0000.00719.45
8.1.110.0030.00519.25
8.1.100.0000.00819.29
8.1.90.0070.00018.95
8.1.80.0000.00719.22
8.1.70.0040.00419.35
8.1.60.0060.00319.46
8.1.50.0000.00919.03
8.1.40.0040.00419.16
8.1.30.0060.00319.56
8.1.20.0090.00019.57
8.1.10.0000.00819.51
8.1.00.0040.00419.07
8.0.300.0040.00421.32
8.0.290.0040.00418.38
8.0.280.0040.00419.84
8.0.270.0030.00618.57
8.0.260.0000.00819.08
8.0.250.0070.00018.74
8.0.240.0000.00818.74
8.0.230.0030.00318.56
8.0.220.0000.00718.45
8.0.210.0030.00618.64
8.0.200.0030.00518.53
8.0.190.0070.00018.83
8.0.180.0070.00018.46
8.0.170.0070.00418.60
8.0.160.0060.00318.46
8.0.150.0020.00518.41
8.0.140.0000.00818.43
8.0.130.0030.00313.40
8.0.120.0030.00618.85
8.0.110.0060.00318.76
8.0.100.0030.00618.34
8.0.90.0050.00318.77
8.0.80.0060.01218.80
8.0.70.0040.00418.77
8.0.60.0050.00318.76
8.0.50.0040.00418.77
8.0.30.0130.00519.10
8.0.20.0120.00719.01
8.0.10.0040.00418.95
8.0.00.0080.01218.61
7.4.330.0050.00016.78
7.4.320.0000.00718.46
7.4.300.0060.00018.34
7.4.290.0070.00018.48
7.4.280.0040.00418.49
7.4.270.0030.00618.20
7.4.260.0040.00418.49
7.4.250.0070.00018.42
7.4.240.0000.00718.34
7.4.230.0000.00718.26
7.4.220.0100.01018.34
7.4.210.0090.00618.43
7.4.200.0040.00418.22
7.4.160.0160.00018.41
7.4.150.0060.01218.15
7.4.140.0140.00918.36
7.4.130.0130.00818.10
7.4.120.0110.01118.18
7.4.110.0070.01118.29
7.4.100.0110.00718.36
7.4.90.0070.01018.21
7.4.80.0090.00919.39
7.4.70.0130.00318.40
7.4.60.0140.00418.28
7.4.50.0090.00918.11
7.4.40.0120.00918.19
7.4.30.0070.01018.35
7.4.00.0030.01416.61
7.3.330.0000.00613.00
7.3.320.0030.00313.02
7.3.310.0060.00318.09
7.3.300.0000.00818.14
7.3.290.0080.00818.04
7.3.280.0120.00618.06
7.3.270.0110.00718.38
7.3.260.0120.01218.29
7.3.250.0090.01018.14
7.3.240.0040.01418.25
7.3.230.0070.01018.11
7.3.210.0140.00318.03
7.3.200.0100.00618.51
7.3.190.0030.01218.37
7.3.180.0100.00617.91
7.3.170.0090.00817.95
7.3.160.0080.01118.18
7.3.120.0090.00616.50
7.3.110.0030.01316.47
7.3.100.0040.01116.75
7.3.90.0120.00316.61
7.3.80.0070.00716.58
7.3.70.0040.01216.64
7.3.60.0040.00816.64
7.3.50.0100.00316.82
7.3.40.0030.00716.70
7.3.30.0050.00316.72
7.3.20.0030.01018.18
7.3.10.0060.00918.16
7.3.00.0000.00918.21
7.2.330.0170.00818.48
7.2.320.0060.01618.56
7.2.310.0100.00718.35
7.2.300.0120.00918.67
7.2.290.0120.01218.09
7.2.240.0060.01016.75
7.2.230.0030.01516.74
7.2.220.0030.01416.31
7.2.210.0060.00616.56
7.2.200.0130.00316.74
7.2.190.0040.01116.75
7.2.180.0000.01116.75
7.2.170.0030.01016.34
7.2.160.0000.00916.60
7.2.150.0120.00318.70
7.2.140.0090.00318.48
7.2.130.0030.01018.50
7.2.120.0030.01418.60
7.2.110.0000.01218.30
7.2.100.0030.01018.18
7.2.90.0030.00618.46
7.2.80.0030.00918.53
7.2.70.0030.00918.46
7.2.60.0060.00818.27
7.2.50.0040.01118.46
7.2.40.0030.01018.42
7.2.30.0000.01218.62
7.2.20.0070.01018.43
7.2.10.0000.01818.69
7.2.00.0060.00519.75
7.1.330.0060.00617.56
7.1.320.0030.01017.36
7.1.310.0060.00317.16
7.1.300.0040.01117.14
7.1.290.0030.00617.44
7.1.280.0150.00017.32
7.1.270.0040.00717.54
7.1.260.0030.01017.40
7.1.250.0000.00817.66
7.1.200.0150.00017.58
7.1.100.0030.01019.55
7.1.70.0050.00318.84
7.1.60.0080.01519.52
7.1.50.0100.01318.73
7.1.00.0000.05324.35
7.0.200.0030.00518.78
7.0.60.0070.05021.79
7.0.50.0070.08017.83
7.0.40.0070.05721.93
7.0.30.0130.06321.85
7.0.20.0300.05021.59
7.0.10.0130.08721.83
7.0.00.0170.05321.87
5.6.280.0030.03022.70
5.6.210.0100.07322.39
5.6.200.0070.04718.22
5.6.190.0070.05022.24
5.6.180.0230.04322.14
5.6.170.0300.05022.15
5.6.160.0070.07322.15
5.6.150.0130.07318.18
5.6.140.0030.05318.12
5.6.130.0100.06318.13
5.6.120.0200.06322.75
5.6.110.0070.06722.79
5.6.100.0070.04022.77
5.6.90.0100.08722.79
5.6.80.0000.04022.14
5.5.350.0300.07722.00
5.5.340.0100.08017.96
5.5.330.0170.06721.88
5.5.320.0600.06721.95
5.5.310.0200.07022.03
5.5.300.0000.04018.03
5.5.290.0000.04318.01
5.5.280.0030.08722.38
5.5.270.0170.07322.38
5.5.260.0070.09022.45
5.5.250.0070.05722.31
5.5.240.0400.05721.91

preferences:
63.95 ms | 401 KiB | 5 Q