3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = str_repeat('foo', 500000); $y = 'bar'; // $before = microtime(1); $x = $x . $y; // var_dump(microtime(1) - $before); // $x = str_repeat('foo', 500000); // $y = 'bar'; // $before = microtime(1); $x .= $y; // var_dump(microtime(1) - $before);

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.0210.00419.48
8.3.50.0110.00623.03
8.3.40.0140.00321.54
8.3.30.0100.00721.84
8.3.20.0060.00323.08
8.3.10.0080.00025.68
8.3.00.0050.00323.00
8.2.180.0130.01019.25
8.2.170.0120.00622.96
8.2.160.0120.00423.24
8.2.150.0060.00324.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0120.00022.04
8.2.110.0120.00022.18
8.2.100.0070.00720.78
8.2.90.0030.00622.08
8.2.80.0060.00320.49
8.2.70.0060.00320.63
8.2.60.0030.00620.80
8.2.50.0030.00620.38
8.2.40.0040.00721.38
8.2.30.0060.00320.95
8.2.20.0030.00620.36
8.2.10.0000.00920.74
8.2.00.0060.00320.33
8.1.280.0090.00625.92
8.1.270.0030.01625.85
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0110.00024.98
8.1.230.0170.00021.88
8.1.220.0090.00020.66
8.1.210.0060.00320.23
8.1.200.0060.00320.10
8.1.190.0040.00420.23
8.1.180.0080.00320.51
8.1.170.0070.00321.46
8.1.160.0000.00824.62
8.1.150.0040.00421.36
8.1.140.0070.00320.13
8.1.130.0000.00820.63
8.1.120.0080.00020.23
8.1.110.0060.00620.16
8.1.100.0090.00020.20
8.1.90.0040.00420.15
8.1.80.0060.00320.06
8.1.70.0040.00420.06
8.1.60.0040.00820.28
8.1.50.0030.00620.07
8.1.40.0030.00620.18
8.1.30.0030.00820.26
8.1.20.0030.00720.34
8.1.10.0040.00420.33
8.1.00.0090.00020.20
8.0.300.0040.00422.79
8.0.290.0070.00319.50
8.0.280.0030.00621.18
8.0.270.0030.00519.95
8.0.260.0070.00019.98
8.0.250.0040.00419.60
8.0.240.0030.00519.59
8.0.230.0060.00319.61
8.0.220.0040.00419.58
8.0.210.0040.00419.34
8.0.200.0070.00019.62
8.0.190.0030.00619.58
8.0.180.0060.00319.46
8.0.170.0030.00619.56
8.0.160.0000.00819.58
8.0.150.0060.00319.46
8.0.140.0030.00619.39
8.0.130.0060.00316.01
8.0.120.0090.00019.51
8.0.110.0030.00619.61
8.0.100.0030.00619.33
8.0.90.0090.00019.51
8.0.80.0150.00319.47
8.0.70.0030.00619.54
8.0.60.0080.00019.43
8.0.50.0040.00419.61
8.0.30.0120.01119.69
8.0.20.0110.01519.62
8.0.10.0060.00319.41
8.0.00.0140.00819.39
7.4.330.0060.00017.02
7.4.320.0000.00719.04
7.4.300.0080.00418.95
7.4.290.0060.00619.16
7.4.280.0040.00419.12
7.4.270.0040.00419.02
7.4.260.0080.00019.00
7.4.250.0060.00319.03
7.4.240.0070.00219.06
7.4.230.0000.00818.83
7.4.220.0120.01919.21
7.4.210.0100.00819.02
7.4.200.0050.00319.05
7.4.190.0000.00819.29
7.4.160.0170.00319.05
7.4.150.0070.01519.17
7.4.140.0090.01419.19
7.4.130.0160.01019.14
7.4.120.0110.01319.20
7.4.110.0170.01019.12
7.4.100.0100.01419.13
7.4.90.0070.01419.09
7.4.80.0080.01619.39
7.4.70.0100.01019.01
7.4.60.0120.00918.99
7.4.50.0100.00019.11
7.4.40.0130.01319.14
7.4.30.0150.00919.11
7.4.00.0100.00717.26
7.3.330.0070.00015.80
7.3.320.0000.00715.85
7.3.310.0060.00318.63
7.3.300.0040.00418.77
7.3.290.0110.00718.89
7.3.280.0150.00518.85
7.3.270.0090.01318.79
7.3.260.0070.01619.12
7.3.250.0150.01118.93
7.3.240.0160.00618.93
7.3.230.0090.01218.78
7.3.210.0090.01218.82
7.3.200.0060.01519.39
7.3.190.0160.01019.13
7.3.180.0160.00318.87
7.3.170.0100.01019.02
7.3.160.0110.00819.15
7.3.120.0000.01817.55
7.2.330.0140.00719.26
7.2.320.0180.00419.32
7.2.310.0150.01219.39
7.2.300.0130.00719.32
7.2.290.0160.00618.92
7.1.200.0000.01217.80
7.1.70.0040.00419.18
7.1.60.0180.00719.46
7.1.50.0100.01018.86
7.1.00.0030.07724.26
7.0.200.0120.00618.83
7.0.140.0030.07324.09
7.0.60.0030.04722.72
7.0.50.0030.04320.53
7.0.40.0100.04720.23
7.0.30.0300.08020.21
7.0.20.0330.06320.13
7.0.10.0030.04320.30
7.0.00.0070.04019.99
5.6.280.0030.07723.89
5.6.210.0130.03023.53
5.6.200.0030.06320.91
5.6.190.0030.06023.11
5.6.180.0030.06323.26
5.6.170.0270.08023.09
5.6.160.0100.08023.18
5.6.150.0170.06020.97
5.6.140.0130.08020.93
5.6.130.0030.07720.98
5.6.120.0130.07723.95
5.6.110.0070.07023.91
5.6.100.0070.04323.86
5.6.90.0070.08723.98
5.6.80.0130.05323.20
5.5.350.0100.06723.25
5.5.340.0070.04320.80
5.5.330.0100.06722.99
5.5.320.0300.03323.05
5.5.310.0330.07722.72
5.5.300.0030.05020.71
5.5.290.0130.05720.68
5.5.280.0100.08023.80
5.5.270.0130.05723.62
5.5.260.0100.08323.69
5.5.250.0200.06323.30
5.5.240.0070.07022.96
5.4.450.0270.06022.03
5.4.440.0730.06022.35
5.4.430.1070.06022.25
5.4.420.1030.04022.06
5.4.410.0470.05722.06
5.4.400.0730.05021.75
5.4.390.0770.05021.81
5.4.380.0070.06321.50
5.4.370.0200.06321.48
5.4.360.0070.06021.50
5.4.350.0170.06021.48
5.4.340.0170.05321.52
5.4.320.0090.04015.28
5.4.310.0120.03315.28
5.4.300.0080.04915.29
5.4.290.0090.04315.28
5.4.280.0080.04015.17
5.4.270.0140.04115.17
5.4.260.0160.04515.17
5.4.250.0130.05015.18
5.4.240.0110.04815.18
5.4.230.0140.04815.16
5.4.220.0150.04615.17
5.4.210.0090.05015.17
5.4.200.0090.05215.17
5.4.190.0130.04715.16
5.4.180.0100.04815.16
5.4.170.0130.04715.17
5.4.160.0080.04815.17
5.4.150.0080.04815.17
5.4.140.0130.04714.85
5.4.130.0100.04514.84
5.4.120.0100.04714.79
5.4.110.0190.03814.79
5.4.100.0130.04314.79
5.4.90.0130.04514.79
5.4.80.0110.04814.79
5.4.70.0100.04714.79
5.4.60.0100.04714.79
5.4.50.0090.04314.79
5.4.40.0110.05114.78
5.4.30.0110.04514.78
5.4.20.0090.04914.77
5.4.10.0100.04714.77
5.4.00.0100.04814.27
5.3.290.0060.04115.50
5.3.280.0080.05015.43
5.3.270.0050.04415.43
5.3.260.0090.04015.44
5.3.250.0100.03815.44
5.3.240.0110.03515.43
5.3.230.0090.03815.43
5.3.220.0090.03815.39
5.3.210.0100.04015.39
5.3.200.0050.04015.39
5.3.190.0120.03715.39
5.3.180.0120.03715.39
5.3.170.0080.03915.39
5.3.160.0140.04715.39
5.3.150.0090.05115.39
5.3.140.0100.04815.39
5.3.130.0100.05215.38
5.3.120.0100.05215.38
5.3.110.0130.04815.38
5.3.100.0090.04814.87
5.3.90.0140.04514.85
5.3.80.0090.04714.84
5.3.70.0070.04914.84
5.3.60.0110.04514.83
5.3.50.0130.04414.77
5.3.40.0080.04914.77
5.3.30.0070.04914.73
5.3.20.0120.04314.51
5.3.10.0150.04114.47
5.3.00.0100.04814.46
5.2.170.0030.04711.95
5.2.160.0060.04011.95
5.2.150.0120.03611.95
5.2.140.0100.03811.95
5.2.130.0050.02911.91
5.2.120.0060.02911.91
5.2.110.0030.03411.91
5.2.100.0110.04611.91
5.2.90.0070.02811.91
5.2.80.0050.03211.91
5.2.70.0060.03411.91
5.2.60.0070.03211.86
5.2.50.0060.02911.82
5.2.40.0050.03311.80
5.2.30.0100.03511.78
5.2.20.0100.03111.77
5.2.10.0040.03111.70
5.2.00.0060.03011.55
5.1.60.0070.02410.84
5.1.50.0070.02710.84
5.1.40.0070.02510.82
5.1.30.0030.02811.16
5.1.20.0040.02811.18
5.1.10.0070.02510.91
5.1.00.0050.0258.14
5.0.50.0060.0199.39
5.0.40.0040.0199.25
5.0.30.0040.0319.07
5.0.20.0050.0189.04
5.0.10.0050.0209.01
5.0.00.0050.0319.00
4.4.90.0060.0147.43
4.4.80.0040.0167.41
4.4.70.0020.0177.40
4.4.60.0010.0187.40
4.4.50.0060.0157.42
4.4.40.0040.0307.41
4.4.30.0060.0187.40
4.4.20.0050.0197.47
4.4.10.0030.0167.47
4.4.00.0080.0237.44
4.3.110.0030.0207.36
4.3.100.0040.0157.35
4.3.90.0000.0187.33
4.3.80.0050.0277.32
4.3.70.0080.0177.32
4.3.60.0050.0157.33
4.3.50.0030.0177.32
4.3.40.0010.0267.27
4.3.30.0050.0176.08
4.3.20.0050.0216.06
4.3.10.0020.0186.03
4.3.00.0130.0207.23

preferences:
40.15 ms | 401 KiB | 5 Q