3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = str_repeat('foo', 500000); $y = 'bar'; $before = microtime(1); $x . $y; printf('%f'."\n", microtime(1) - $before); $x = str_repeat('foo', 500000); $y = 'bar'; $before = microtime(1); $x .= $y; printf('%f'."\n", 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)
7.2.00.0030.01221.27
7.1.70.0030.00518.95
7.1.60.0040.02219.46
7.1.50.0120.01618.82
7.1.00.0100.07024.34
7.0.200.0060.00618.70
7.0.140.0070.07324.00
7.0.100.0130.07722.75
7.0.90.0030.08722.68
7.0.80.0170.08022.73
7.0.70.0100.04722.63
7.0.60.0070.08322.68
7.0.50.0200.07023.03
7.0.40.0000.08320.00
7.0.30.0100.08020.04
7.0.20.0030.09020.05
7.0.10.0100.07720.14
7.0.00.0100.08020.13
5.6.280.0070.07323.90
5.6.250.0100.08723.39
5.6.240.0130.07723.51
5.6.230.0070.09023.45
5.6.220.0030.07323.48
5.6.210.0130.08323.34
5.6.200.0130.06723.91
5.6.190.0070.07323.77
5.6.180.0270.05723.88
5.6.170.0070.08023.80
5.6.160.0030.08723.77
5.6.150.0300.06323.95
5.6.140.0130.07723.84
5.6.130.0030.05723.87
5.6.120.0070.09023.93
5.6.110.0130.08723.86
5.6.100.0130.07323.92
5.6.90.0100.08023.93
5.6.80.0130.07323.16
5.6.70.0130.07723.39
5.6.60.0070.08323.26
5.6.50.0130.08023.39
5.6.40.0170.05323.23
5.6.30.0100.03723.23
5.6.20.0130.03023.27
5.6.10.0030.04323.19
5.6.00.0100.04323.19
5.5.380.0230.07023.13
5.5.370.0130.04723.30
5.5.360.0130.08023.31
5.5.350.0170.03023.29
5.5.340.0270.03723.75
5.5.330.0070.08023.70
5.5.320.0170.07323.59
5.5.310.0100.07723.65
5.5.300.0070.05723.72
5.5.290.0070.09023.66
5.5.280.0130.06723.69
5.5.270.0100.05723.75
5.5.260.0130.08323.59
5.5.250.0200.06323.57
5.5.240.0070.08023.04
5.5.230.0100.07722.96
5.5.220.0030.08322.96
5.5.210.0130.06723.07
5.5.200.0070.04022.82
5.5.190.0100.03723.10
5.5.180.0030.04323.09
5.5.160.0030.04023.08
5.5.150.0030.04022.95
5.5.140.0070.06322.95
5.5.130.0070.03723.07
5.5.120.0170.06722.97
5.5.110.0070.06022.99
5.5.100.0100.05722.95
5.5.90.0000.04322.81
5.5.80.0030.04022.87
5.5.70.0070.03722.89
5.5.60.0070.05722.83
5.5.50.0070.03722.86
5.5.40.0070.05022.92
5.5.30.0100.04322.85
5.5.20.0130.05322.88
5.5.10.0130.03022.87
5.5.00.0000.05022.85
5.4.450.0000.09722.07
5.4.440.0170.08322.06
5.4.430.0200.06722.14
5.4.420.0070.07722.08
5.4.410.0200.06322.01
5.4.400.0030.08321.82
5.4.390.0070.07721.66
5.4.380.0130.08021.76
5.4.370.0130.07021.72
5.4.360.0030.04721.76
5.4.350.0100.05321.73
5.4.340.0030.04021.77
5.4.320.0070.04021.77
5.4.310.0100.03321.79
5.4.300.0000.06021.55
5.4.290.0030.07321.65
5.4.280.0000.04721.91
5.4.270.0100.06321.58
5.4.260.0030.04321.55
5.4.250.0070.03721.80
5.4.240.0070.04021.71
5.4.230.0030.07321.80
5.4.220.0000.05321.85
5.4.210.0070.03721.55
5.4.200.0070.07321.58
5.4.190.0100.04321.71
5.4.180.0030.04021.79
5.4.170.0070.03721.70
5.4.160.0070.07321.74
5.4.150.0030.05021.53
5.4.140.0070.03319.04
5.4.130.0030.03718.88
5.4.120.0130.06019.14
5.4.110.0030.05018.98
5.4.100.0070.07019.15
5.4.90.0130.06319.13
5.4.80.0100.07719.04
5.4.70.0100.07018.93
5.4.60.0070.07319.03
5.4.50.0070.07019.07
5.4.40.0200.06319.13
5.4.30.0100.07019.12
5.4.20.0030.07719.18
5.4.10.0030.06719.08
5.4.00.0070.07318.59
5.3.290.0070.03717.17
5.3.280.0030.04017.19
5.3.270.0130.03017.27
5.3.260.0070.03717.23
5.3.250.0030.06017.18
5.3.240.0100.03017.28
5.3.230.0000.04317.17
5.3.220.0030.05317.07
5.3.210.0030.04017.18
5.3.200.0100.04317.04
5.3.190.0070.08017.23
5.3.180.0100.07017.09
5.3.170.0230.05717.20
5.3.160.0200.06017.14
5.3.150.0070.08317.21
5.3.140.0030.07717.18
5.3.130.0000.06017.15
5.3.120.0100.07317.22
5.3.110.0070.07717.23
5.3.100.0070.07316.65
5.3.90.0100.07016.54
5.3.80.0070.07316.58
5.3.70.0130.06016.57
5.3.60.0100.06316.61
5.3.50.0100.07016.55
5.3.40.0000.05016.54
5.3.30.0070.07016.52
5.3.20.0030.04316.23
5.3.10.0130.07016.24
5.3.00.0100.06716.24
5.2.170.0100.06314.28
5.2.160.0130.05314.28
5.2.150.0070.05314.28
5.2.140.0100.07014.28
5.2.130.0070.02714.28
5.2.120.0100.06014.28
5.2.110.0070.04714.28
5.2.100.0100.06314.28
5.2.90.0070.06014.28
5.2.80.0070.06314.28
5.2.70.0100.05714.28
5.2.60.0030.04014.28
5.2.50.0100.05314.28
5.2.40.0100.06014.28
5.2.30.0000.04314.28
5.2.20.0100.06014.28
5.2.10.0070.03714.28
5.2.00.0030.05714.28
5.1.60.0030.05314.28
5.1.50.0070.05714.28
5.1.40.0070.05314.28
5.1.30.0100.05014.28
5.1.20.0070.06314.28
5.1.10.0100.05014.28
5.1.00.0200.04314.28
5.0.50.0130.04014.28
5.0.40.0030.05014.28
5.0.30.0030.06314.28
5.0.20.0030.04314.28
5.0.10.0070.04314.28
5.0.00.0100.05714.28
4.4.90.0070.03314.28
4.4.80.0100.03014.28
4.4.70.0070.03314.28
4.4.60.0100.03014.28
4.4.50.0070.03314.28
4.4.40.0070.05314.28
4.4.30.0030.03714.28
4.4.20.0130.02714.28
4.4.10.0000.03714.28
4.4.00.0030.04314.28
4.3.110.0100.01314.28
4.3.100.0030.02014.28
4.3.90.0100.02714.28
4.3.80.0070.05014.28
4.3.70.0030.03714.28
4.3.60.0070.03314.28
4.3.50.0070.02714.28
4.3.40.0000.05714.28
4.3.30.0070.03314.28
4.3.20.0000.02014.28
4.3.10.0070.03314.28
4.3.00.0070.02714.28

preferences:
36.43 ms | 400 KiB | 5 Q