3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new NumberFormatter("en_US", NumberFormatter::DECIMAL); $formatter->setAttribute(NumberFormatter::MAX_FRACTION_DIGITS, 42); echo $formatter->format(123456.7891234), PHP_EOL; $formatter->setAttribute(NumberFormatter::MAX_FRACTION_DIGITS, PHP_INT_MAX); echo $formatter->format(123456.7891234), PHP_EOL;

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.4.130.0190.01019.41
8.4.120.0130.00722.58
8.4.110.0100.01022.54
8.4.100.0140.00619.83
8.4.90.0060.01322.56
8.4.80.0060.01020.87
8.4.70.0080.01222.68
8.4.60.0270.00720.99
8.4.50.0100.00920.51
8.4.40.0130.00719.62
8.4.30.0160.00321.32
8.4.20.0100.01021.46
8.4.10.0060.00321.47
8.3.260.0110.00918.32
8.3.250.0130.00520.95
8.3.240.0110.00918.59
8.3.230.0100.01018.44
8.3.220.0070.00320.79
8.3.210.0170.00818.41
8.3.200.0030.00618.52
8.3.190.0060.00421.21
8.3.180.0250.01019.09
8.3.170.0030.01622.58
8.3.160.0130.00718.65
8.3.150.0100.00619.47
8.3.140.0100.00318.42
8.3.130.0060.00320.21
8.3.120.0080.00020.99
8.3.110.0040.00420.18
8.3.100.0090.00324.06
8.3.90.0090.00626.77
8.3.80.0090.00320.31
8.3.70.0150.00720.31
8.3.60.0090.00918.50
8.3.50.0130.00620.30
8.3.40.0090.00920.19
8.3.30.0000.01620.10
8.3.20.0080.00021.89
8.3.10.0080.00023.59
8.3.00.0040.00424.86
8.2.290.0090.01120.33
8.2.280.0260.00820.39
8.2.270.0130.00719.48
8.2.260.0030.00620.68
8.2.250.0040.00420.55
8.2.240.0100.00019.35
8.2.230.0160.00520.94
8.2.220.0060.00337.54
8.2.210.0130.00326.77
8.2.200.0060.00318.88
8.2.190.0090.00918.75
8.2.180.0260.01018.25
8.2.170.0120.00322.96
8.2.160.0070.00721.90
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0080.00021.75
8.2.120.0050.00326.35
8.2.110.0100.00022.82
8.2.100.0120.00019.53
8.2.90.0080.00021.97
8.2.80.0000.00821.74
8.2.70.0060.00319.25
8.2.60.0000.00819.68
8.2.50.0000.00919.78
8.2.40.0090.00021.75
8.2.30.0040.00420.67
8.2.20.0090.00019.86
8.2.10.0040.00419.73
8.2.00.0040.00419.60
8.1.330.0080.01218.22
8.1.320.0140.00618.25
8.1.310.0120.00918.36
8.1.300.0050.00522.32
8.1.290.0070.00330.84
8.1.280.0070.00725.92
8.1.270.0030.00621.52
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0070.00323.12
8.1.230.0100.00022.50
8.1.220.0040.00419.52
8.1.210.0030.00520.52
8.1.200.0040.00418.75
8.1.190.0080.00618.88
8.1.180.0050.00519.15
8.1.170.0000.00820.36
8.1.160.0000.00820.09
8.1.150.0000.00721.46
8.1.140.0060.00319.23
8.1.130.0000.00720.31
8.1.120.0040.00419.45
8.1.110.0030.00519.42
8.1.100.0030.00619.43
8.1.90.0030.00519.42
8.1.80.0000.00919.34
8.1.70.0070.00019.47
8.1.60.0040.00419.52
8.1.50.0030.00519.13
8.1.40.0040.00419.53
8.1.30.0040.00419.52
8.1.20.0080.00019.59
8.1.10.0000.00819.55
8.1.00.0050.00319.52
8.0.300.0070.00421.23
8.0.290.0000.00918.50
8.0.280.0000.00819.82
8.0.270.0050.00219.00
8.0.260.0000.01120.09
8.0.250.0070.00418.75
8.0.240.0040.00418.73
8.0.230.0000.00718.64
8.0.220.0000.00718.67
8.0.210.0070.00318.81
8.0.200.0070.00018.59
8.0.190.0080.00018.62
8.0.180.0050.00218.66
8.0.170.0020.00518.54
8.0.160.0040.00418.48
8.0.150.0050.00318.37
8.0.140.0000.00818.57
8.0.130.0030.00313.38
8.0.120.0030.00618.84
8.0.110.0000.00818.45
8.0.100.0080.00018.84
8.0.90.0060.00318.66
8.0.80.0090.00918.85
8.0.70.0090.00018.95
8.0.60.0030.00518.93
8.0.50.0000.00718.83
8.0.30.0070.01418.86
8.0.20.0130.00718.93
8.0.10.0050.00219.07
8.0.00.0070.01018.76
7.4.330.0000.00515.55
7.4.320.0030.00618.48
7.4.300.0070.00018.45
7.4.290.0070.00318.51
7.4.280.0000.00818.43
7.4.270.0050.00318.57
7.4.260.0000.00718.57
7.4.250.0040.00418.41
7.4.240.0080.00018.53
7.4.230.0000.00718.39
7.4.220.0060.00918.35
7.4.210.0080.00818.44
7.4.200.0030.00618.34
7.4.160.0080.00818.31
7.4.150.0040.01518.14
7.4.140.0090.00918.27
7.4.130.0100.01018.71
7.4.120.0120.00818.45
7.4.110.0110.00718.21
7.4.100.0150.00918.23
7.4.90.0100.00718.15
7.4.80.0090.01419.39
7.4.70.0030.02018.20
7.4.60.0090.00618.18
7.4.50.0060.00618.50
7.4.40.0120.00618.25
7.4.30.0080.00818.02
7.4.00.0110.00616.86
7.3.330.0020.00213.00
7.3.320.0000.00513.20
7.3.310.0000.00818.06
7.3.300.0000.00718.00
7.3.290.0000.00818.21
7.3.280.0100.00918.13
7.3.270.0030.01418.27
7.3.260.0130.00618.31
7.3.250.0100.00818.22
7.3.240.0100.00918.14
7.3.230.0120.00617.94
7.3.210.0160.00318.22
7.3.200.0030.01618.38
7.3.190.0090.00818.52
7.3.180.0130.01018.09
7.3.170.0130.01018.40
7.3.160.0090.00918.21
7.2.330.0150.00318.49
7.2.320.0030.01318.04
7.2.310.0080.00918.49
7.2.300.0110.00718.59
7.2.290.0060.01118.51
7.2.60.0030.00718.65
7.1.200.0040.00717.52
7.1.100.3910.01017.81
7.1.90.6590.00317.82
7.1.80.5070.01617.80
7.1.70.5600.01017.17
7.1.60.5840.01332.94
7.1.50.4000.01332.79
7.1.40.7960.01032.42
7.1.30.9620.01632.62
7.1.20.6310.01732.55
7.1.10.4500.01016.48
7.1.00.6610.01016.66
7.0.240.4860.01317.55
7.0.230.6280.01617.79
7.0.220.6080.01317.44
7.0.210.6470.01016.91
7.0.200.8930.00717.04
7.0.190.0190.01016.86
7.0.180.0930.01216.36
7.0.171.0680.01016.52
7.0.160.7330.00616.25
7.0.150.6490.00716.23
7.0.140.6630.00316.45
7.0.130.5870.01016.22
7.0.120.5720.01016.27
7.0.110.4170.01315.92
7.0.100.4440.00716.16
7.0.90.6090.00615.98
7.0.80.6350.01016.16
7.0.70.4000.01315.96
7.0.60.4010.01016.01
7.0.50.4480.01416.15
7.0.40.4710.01316.40
7.0.30.3820.01316.17
7.0.20.5710.01016.07
7.0.10.5860.01616.30
7.0.00.6300.01016.33

preferences:
136.22 ms | 403 KiB | 5 Q