3v4l.org

run code in 300+ PHP versions simultaneously
<?php $formatter = NumberFormatter::create(101, NumberFormatter::DEFAULT_STYLE, null); $formatter->setAttribute(NumberFormatter::FRACTION_DIGITS, 2); print $formatter->format(doubleval("60.65")); print "\n"; print $formatter->format("60.65");

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.0120.00920.43
8.3.50.0070.01222.86
8.3.40.0090.00920.04
8.3.30.0120.00920.38
8.3.20.0030.00521.55
8.3.10.0050.00321.72
8.3.00.0030.00621.13
8.2.180.0160.00320.54
8.2.170.0070.01122.96
8.2.160.0030.01020.46
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0050.00323.42
8.2.110.0060.00621.81
8.2.100.0060.00619.53
8.2.90.0000.00819.79
8.2.80.0090.00020.15
8.2.70.0050.00319.25
8.2.60.0040.00419.38
8.2.50.0030.00519.38
8.2.40.0030.00519.78
8.2.30.0000.00820.91
8.2.20.0040.00419.38
8.2.10.0040.00419.80
8.2.00.0000.00819.45
8.1.280.0060.01025.92
8.1.270.0050.00325.46
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0070.00320.96
8.1.230.0040.00722.66
8.1.220.0060.00319.95
8.1.210.0050.00318.98
8.1.200.0030.00619.16
8.1.190.0030.00518.85
8.1.180.0060.00319.05
8.1.170.0080.00019.86
8.1.160.0050.00323.30
8.1.150.0050.00320.07
8.1.140.0080.00019.11
8.1.130.0030.00519.48
8.1.120.0000.00719.45
8.1.110.0000.00919.38
8.1.100.0040.00419.43
8.1.90.0040.00419.39
8.1.80.0060.00319.35
8.1.70.0000.00719.04
8.1.60.0050.00319.11
8.1.50.0060.00319.29
8.1.40.0000.00819.46
8.1.30.0030.00619.57
8.1.20.0040.00419.54
8.1.10.0030.00519.46
8.1.00.0080.00019.41
8.0.300.0040.00418.77
8.0.290.0080.00318.50
8.0.280.0040.00419.71
8.0.270.0070.00018.98
8.0.260.0030.00318.98
8.0.250.0050.00318.59
8.0.240.0040.00418.77
8.0.230.0000.00718.59
8.0.220.0030.00318.58
8.0.210.0030.00518.62
8.0.200.0000.00718.90
8.0.190.0060.00318.79
8.0.180.0000.00718.69
8.0.170.0060.00318.62
8.0.160.0040.00418.53
8.0.150.0000.00718.58
8.0.140.0080.00018.56
8.0.130.0030.00313.31
8.0.120.0050.00318.54
8.0.110.0030.00618.91
8.0.100.0040.00418.92
8.0.90.0030.00618.76
8.0.80.0150.00718.71
8.0.70.0040.00418.87
8.0.60.0050.00318.77
8.0.50.0000.00818.66
8.0.30.0090.01118.95
8.0.20.0080.01218.85
8.0.10.0000.00718.56
8.0.00.0100.01018.75
7.4.330.0000.00515.00
7.4.320.0030.00318.49
7.4.300.0040.00418.41
7.4.290.0030.00518.37
7.4.280.0000.00918.48
7.4.270.0030.00618.34
7.4.260.0040.00418.38
7.4.250.0030.00618.28
7.4.240.0030.00418.45
7.4.230.0040.00418.38
7.4.220.0100.01618.40
7.4.210.0060.00918.43
7.4.200.0080.00018.37
7.4.160.0090.00618.30
7.4.150.0070.01118.30
7.4.140.0120.00718.09
7.4.130.0130.00818.31
7.4.120.0150.00618.33
7.4.110.0110.00718.14
7.4.100.0090.00918.21
7.4.90.0160.01918.32
7.4.80.0150.00619.37
7.4.70.0070.01018.37
7.4.60.0070.00918.22
7.4.50.0040.00418.01
7.4.40.0110.00718.17
7.4.30.0090.00618.38
7.4.00.0100.00716.88
7.3.330.0060.00013.09
7.3.320.0030.00313.14
7.3.310.0000.00717.92
7.3.300.0050.00218.22
7.3.290.0060.00918.22
7.3.280.0050.01118.10
7.3.270.0210.00618.43
7.3.260.0060.01218.37
7.3.250.0070.01018.24
7.3.240.0120.00918.25
7.3.230.0090.01218.32
7.3.210.0090.00918.12
7.3.200.0090.00919.39
7.3.190.0190.00018.27
7.3.180.0140.00318.39
7.3.170.0030.01418.22
7.3.160.0030.02018.50
7.2.330.0200.00318.07
7.2.320.0080.00818.63
7.2.310.0060.01218.29
7.2.300.0060.01318.38
7.2.290.0120.00618.43
7.1.70.0110.00019.09
7.1.60.0120.01219.32
7.1.50.0130.01318.96
7.1.00.0100.07024.49
7.0.200.0100.01018.76
7.0.140.0030.07323.93
7.0.100.0030.07321.71
7.0.90.0070.08721.70
7.0.80.0330.08321.65
7.0.70.0300.08021.82
7.0.60.0330.08321.79
7.0.50.0370.05322.07
7.0.40.0070.08321.83
7.0.30.0100.07021.88
7.0.20.0170.07021.82
7.0.10.0130.05321.66
7.0.00.0030.08321.79
5.6.280.0070.07022.84
5.6.250.0130.06022.42
5.6.240.0070.07322.44
5.6.230.0170.05022.65
5.6.220.0070.08722.50
5.6.210.0170.07022.31
5.6.200.0030.09022.68
5.6.190.0100.07322.88
5.6.180.0070.08022.75
5.6.170.0170.04022.98
5.6.160.0100.07722.70
5.6.150.0100.05022.66
5.6.140.0130.06322.56
5.6.130.0100.08022.95
5.6.120.0000.06722.57
5.6.110.0030.08722.72
5.6.100.0100.08322.97
5.6.90.0030.05722.59
5.6.80.0130.07022.34
5.6.70.0070.07722.11
5.6.60.0000.05022.35
5.6.50.0100.07321.95
5.6.40.0070.07722.09
5.6.30.0070.07022.34
5.6.20.0000.06022.22
5.6.10.0130.07022.01
5.6.00.0100.04722.07
5.5.380.0070.07322.36
5.5.370.0100.08322.22
5.5.360.0070.06322.11
5.5.350.0100.07322.25
5.5.340.0130.06722.71
5.5.330.0200.06722.52
5.5.320.0100.07322.81
5.5.310.0130.07722.82
5.5.300.0070.07722.71
5.5.290.0070.05722.81
5.5.280.0030.08722.51
5.5.270.0100.08022.53
5.5.260.0130.08722.29
5.5.250.0230.06722.13
5.5.240.0070.06321.90
5.5.230.0070.07322.11
5.5.220.0100.07722.10
5.5.210.0070.06721.83
5.5.200.0100.05321.82
5.5.190.0130.07021.71
5.5.180.0100.07722.16
5.5.160.0070.07721.65
5.5.150.0000.07022.02
5.5.140.0000.08021.75
5.5.130.0200.07021.86
5.5.120.0100.06721.69
5.5.110.0130.04321.85
5.5.100.0170.06722.04
5.5.90.0130.06721.70
5.5.80.0030.08321.76
5.5.70.0170.07321.66
5.5.60.0030.04721.78
5.5.50.0070.07021.56
5.5.40.0070.07722.02
5.5.30.0070.05021.93
5.5.20.0030.08022.02
5.5.10.0200.05721.65
5.5.00.0130.05021.96
5.4.450.0100.08021.03
5.4.440.0030.05020.86
5.4.430.0070.07720.82
5.4.420.0170.06721.11
5.4.410.0070.05720.90
5.4.400.0030.06720.38
5.4.390.0030.08020.70
5.4.380.0070.06720.80
5.4.370.0100.06720.37
5.4.360.0130.05720.78
5.4.350.0070.05720.65
5.4.340.0000.07720.79
5.4.320.0070.08320.75
5.4.310.0200.06320.39
5.4.300.0070.08020.78
5.4.290.0100.05320.81
5.4.280.0130.05720.68
5.4.270.0070.08020.75
5.4.260.0030.06720.80
5.4.250.0100.06720.75
5.4.240.0070.05720.52
5.4.230.0030.06320.76
5.4.220.0130.06320.75
5.4.210.0070.06720.76
5.4.200.0030.06720.49
5.4.190.0070.07720.77
5.4.180.0100.04320.65
5.4.170.0030.07720.52
5.4.160.0070.07320.78
5.4.150.0100.07320.65
5.4.140.0200.05317.93
5.4.130.0070.06318.11
5.4.120.0000.07018.05
5.4.110.0100.06718.07
5.4.100.0200.05018.10
5.4.90.0030.07718.01
5.4.80.0030.07318.04
5.4.70.0130.06318.23
5.4.60.0100.07318.02
5.4.50.0070.07318.04
5.4.40.0130.06018.04
5.4.30.0070.05017.97
5.4.20.0130.03718.04
5.4.10.0030.07717.86
5.4.00.0070.07317.57
5.3.290.0030.08014.52
5.3.280.0100.06014.59
5.3.270.0100.06714.61
5.3.260.0100.06714.46
5.3.250.0130.07314.59
5.3.240.0130.06714.43
5.3.230.0030.07714.58
5.3.220.0070.04014.53
5.3.210.0070.07014.43
5.3.200.0100.08314.43
5.3.190.0100.07014.55
5.3.180.0070.07314.53
5.3.170.0030.07714.39
5.3.160.0130.06714.56
5.3.150.0070.05014.43
5.3.140.0100.08014.55
5.3.130.0030.05314.46
5.3.120.0130.06714.51
5.3.110.0070.06714.41
5.3.100.0230.03713.86
5.3.90.0070.03714.00
5.3.80.0130.06713.81
5.3.70.0100.06713.80
5.3.60.0130.06013.76
5.3.50.0100.07013.90
5.3.40.0030.07713.86
5.3.30.0070.04713.77
5.3.20.0070.05313.45
5.3.10.0100.03313.60
5.3.00.0030.06713.62
5.2.170.0030.06311.01
5.2.160.0100.05311.08
5.2.150.0100.05711.13
5.2.140.0100.06011.06
5.2.130.0030.06311.13
5.2.120.0070.05310.95
5.2.110.0070.03011.06
5.2.100.0070.05711.13
5.2.90.0000.06311.11
5.2.80.0030.04711.04
5.2.70.0030.05710.98
5.2.60.0000.04010.89
5.2.50.0200.03310.87
5.2.40.0100.04710.86
5.2.30.0070.05010.97
5.2.20.0000.03710.95
5.2.10.0030.03310.81
5.2.00.0070.04010.74
5.1.60.0000.05710.00
5.1.50.0070.05010.07
5.1.40.0070.0479.85
5.1.30.0070.05010.36
5.1.20.0030.06010.28
5.1.10.0070.05010.09
5.1.00.0070.0539.94
5.0.50.0030.0408.56
5.0.40.0000.0308.46
5.0.30.0070.0608.13
5.0.20.0030.0438.27
5.0.10.0070.0338.24
5.0.00.0000.0578.24
4.4.90.0030.0378.13
4.4.80.0000.0378.13
4.4.70.0000.0378.13
4.4.60.0070.0278.13
4.4.50.0070.0308.13
4.4.40.0000.0438.13
4.4.30.0100.0308.13
4.4.20.0000.0338.13
4.4.10.0000.0278.13
4.4.00.0000.0508.13
4.3.110.0030.0338.13
4.3.100.0030.0178.13
4.3.90.0070.0278.13
4.3.80.0030.0378.13
4.3.70.0070.0308.13
4.3.60.0030.0178.13
4.3.50.0030.0378.13
4.3.40.0000.0538.13
4.3.30.0000.0408.13
4.3.20.0030.0378.13
4.3.10.0070.0308.13
4.3.00.0030.0338.13

preferences:
43.88 ms | 401 KiB | 5 Q