3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = new NumberFormatter( 'en_GB', NumberFormatter::DECIMAL ); $formatter->setTextAttribute(NumberFormatter::POSITIVE_PREFIX, '+'); $num1= '-12.20000'; $num2= '+18.20000'; echo $formatter->format($num1) . PHP_EOL; echo $formatter->format($num2) . 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.5.10.0120.00919.04
8.5.00.0140.00822.91
8.4.150.0020.00114.05
8.4.140.0130.00919.59
8.4.130.0120.00919.94
8.4.120.0050.00322.44
8.4.110.0140.00624.63
8.4.100.0140.00719.88
8.4.90.0130.00719.59
8.4.80.0100.01019.84
8.4.70.0140.00719.72
8.4.60.0160.00620.27
8.4.50.0080.00319.43
8.4.40.0090.00919.32
8.4.30.0100.00720.54
8.4.20.0180.00320.51
8.4.10.0130.01322.61
8.3.280.0110.00921.50
8.3.270.0110.00918.42
8.3.260.0040.00418.45
8.3.250.0100.01020.66
8.3.240.0100.00918.53
8.3.230.0070.00118.48
8.3.220.0130.00618.95
8.3.210.0040.00418.38
8.3.200.0050.00318.41
8.3.190.0100.00921.05
8.3.180.0100.00418.44
8.3.170.0030.01619.14
8.3.160.0060.01220.46
8.3.150.0080.00019.25
8.3.140.0070.00319.08
8.3.130.0110.00720.33
8.3.120.0060.01320.81
8.3.110.0080.00020.94
8.3.100.0030.00724.06
8.3.90.0080.00026.77
8.3.80.0080.00318.50
8.3.70.0070.01120.02
8.3.60.0130.00720.31
8.3.50.0120.01124.45
8.3.40.0170.00320.13
8.3.30.0190.00319.92
8.3.20.0150.00322.08
8.3.10.0080.00021.51
8.3.00.0080.01122.28
8.2.290.0130.00622.13
8.2.280.0140.00620.42
8.2.270.0130.01618.63
8.2.260.0040.01518.83
8.2.250.0090.01220.18
8.2.240.0030.00621.17
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0090.00626.77
8.2.200.0070.00418.75
8.2.190.0070.01418.88
8.2.180.0140.00420.51
8.2.170.0180.00422.96
8.2.160.0140.00721.72
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0130.00726.16
8.2.120.0080.00021.66
8.2.110.0030.00622.90
8.2.100.0110.00019.38
8.2.90.0040.00420.50
8.2.80.0040.00419.25
8.2.70.0100.00219.25
8.2.60.0000.00819.79
8.2.50.0030.00619.38
8.2.40.0000.00820.03
8.2.30.0060.00321.14
8.2.20.0050.00319.77
8.2.10.0040.00420.52
8.2.00.0070.00020.60
8.1.330.0100.00920.34
8.1.320.0110.00818.12
8.1.310.0040.00420.55
8.1.300.0100.00019.88
8.1.290.0030.00618.88
8.1.280.0260.00925.92
8.1.270.0060.00323.51
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00020.84
8.1.230.0080.00422.38
8.1.220.0060.00319.54
8.1.210.0030.00519.13
8.1.200.0040.00719.10
8.1.190.0000.00818.97
8.1.180.0030.00618.98
8.1.170.0040.00420.32
8.1.160.0070.00322.05
8.1.150.0090.00420.21
8.1.140.0040.00420.21
8.1.130.0040.00421.49
8.1.120.0070.00019.51
8.1.110.0000.00819.07
8.1.100.0040.00419.40
8.1.90.0000.00819.43
8.1.80.0040.00419.35
8.1.70.0040.00519.38
8.1.60.0030.00719.53
8.1.50.0100.00419.31
8.1.40.0120.00219.36
8.1.30.0090.00419.41
8.1.20.0090.00419.54
8.1.10.0120.00219.47
8.1.00.0110.00419.44
8.0.300.0040.00419.09
8.0.290.0040.00418.50
8.0.280.0000.00719.77
8.0.270.0070.00019.32
8.0.260.0000.00721.55
8.0.250.0070.00018.63
8.0.240.0070.00018.59
8.0.230.0070.00018.67
8.0.220.0070.00018.64
8.0.210.0030.00518.66
8.0.200.0080.00318.66
8.0.190.0080.00518.69
8.0.180.0080.00418.61
8.0.170.0090.00418.62
8.0.160.0090.00218.58
8.0.150.0120.00618.40
8.0.140.0070.00718.50
8.0.130.0090.00315.99
8.0.120.0060.00518.78
8.0.110.0090.00218.85
8.0.100.0080.00418.79
8.0.90.0100.00318.76
8.0.80.0060.01018.81
8.0.70.0030.00718.79
8.0.60.0040.00818.72
8.0.50.0080.00418.70
8.0.30.0100.00718.77
8.0.20.0070.01018.81
8.0.10.0090.00418.79
8.0.00.0070.01018.70
7.4.330.0050.00015.55
7.4.320.0000.00618.52
7.4.300.0030.00518.38
7.4.290.0080.00418.26
7.4.280.0100.00118.41
7.4.270.0070.00418.28
7.4.260.0100.00115.75
7.4.250.0060.00518.24
7.4.240.0070.00318.42
7.4.230.0100.00218.33
7.4.220.0090.00118.52
7.4.210.0060.01218.44
7.4.200.0070.00418.46
7.4.190.0070.00718.28
7.4.180.0070.00518.42
7.4.160.0050.01018.44
7.4.150.0160.00018.12
7.4.140.0070.00718.05
7.4.130.0110.00718.20
7.4.120.0050.01118.30
7.4.110.0120.00418.29
7.4.100.0130.00518.29
7.4.90.0090.00718.21
7.4.80.0100.00618.78
7.4.70.0090.00718.39
7.4.60.0120.00718.18
7.4.50.0070.00818.09
7.4.40.0160.00818.17
7.4.30.0070.00918.14
7.4.20.0110.00618.20
7.4.10.0090.00718.14
7.4.00.0040.01118.42
7.3.330.0040.00717.99
7.3.320.0060.00415.58
7.3.310.0070.00418.06
7.3.300.0040.00818.01
7.3.290.0120.00818.13
7.3.280.0110.00518.02
7.3.270.0140.00318.06
7.3.260.0120.00918.20
7.3.250.0170.00017.94
7.3.240.0100.00818.31
7.3.230.0090.01018.14
7.3.220.0090.00617.99
7.3.210.0070.00918.00
7.3.200.0100.01017.94
7.3.190.0090.00918.18
7.3.180.0090.00718.21
7.3.170.0070.00918.26
7.3.160.0170.00118.02
7.3.150.0090.01018.23
7.3.140.0080.00718.14
7.3.130.0110.00518.12
7.3.120.0080.00818.15
7.3.110.0090.00718.01
7.3.100.0070.01118.17
7.3.90.0080.00818.20
7.3.80.0090.01118.34
7.3.70.0070.00918.16
7.3.60.0060.01018.14
7.3.50.0090.00718.30
7.3.40.0100.00818.20
7.3.30.0110.00918.20
7.3.20.0110.00618.60
7.3.10.0110.00618.57
7.3.00.0110.01018.59
7.2.340.0090.00518.03
7.2.330.0120.00818.12
7.2.320.0110.00617.93
7.2.310.0120.00418.44
7.2.300.0110.00718.16
7.2.290.0070.01018.25
7.2.280.0080.01018.54
7.2.270.0090.00818.28
7.2.260.0090.00818.49
7.2.250.0100.00718.29
7.2.240.0090.00718.31
7.2.230.0100.00918.40
7.2.220.0110.00618.45
7.2.210.0080.01018.28
7.2.200.0090.00918.35
7.2.190.0090.00718.33
7.2.180.0120.00518.40
7.2.170.0100.00818.41
7.2.160.0110.00818.41
7.2.150.0070.01318.65
7.2.140.0090.01318.70
7.2.130.0110.00918.59
7.2.120.0140.00618.64
7.2.110.0100.01118.77
7.2.100.0150.00918.77
7.2.90.0110.00918.76
7.2.80.0110.01018.89
7.2.70.0110.01018.77
7.2.60.0080.01118.83
7.2.50.0100.00918.85
7.2.40.0110.00718.66
7.2.30.0080.01118.72
7.2.20.0130.00918.75
7.2.10.0080.01118.82
7.2.00.0100.00818.78

preferences:
58.49 ms | 403 KiB | 5 Q