3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); $time = microtime(1); $i = 0; while($i++ < 100000) echo'this is a test that tests only comma vs dot-concatenation... Which is the fastest?','this is a test that tests only comma vs dot-concatenation... Which is the fastest?','this is a test that tests only comma vs dot-concatenation... Which is the fastest?','this is a test that tests only comma vs dot-concatenation... Which is the fastest?'; ob_end_clean(); echo (microtime(1)-$time)*1000, " milliseconds for commas"; echo "\n"; ob_start(); $time = microtime(1); $i = 0; while($i++ < 100000) echo'this is a test that tests only comma vs dot-concatenation... Which is the fastest?'.'this is a test that tests only comma vs dot-concatenation... Which is the fastest?'.'this is a test that tests only comma vs dot-concatenation... Which is the fastest?'.'this is a test that tests only comma vs dot-concatenation... Which is the fastest?'; ob_end_clean(); echo (microtime(1)-$time)*1000, " milliseconds for dots";

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.3.10.0680.03178.67
7.3.00.0980.03378.52
7.2.130.0660.03878.91
7.2.120.1070.03878.71
7.2.110.0910.03278.63
7.2.100.1080.02778.63
7.2.90.1880.03278.57
7.2.80.1920.03378.41
7.2.70.1630.03478.67
7.2.60.1050.02478.64
7.2.50.1550.03878.53
7.2.40.1630.02678.60
7.2.30.1020.04878.79
7.2.20.0590.03178.74
7.2.10.1380.03778.38
7.2.00.1160.03279.89
7.1.250.0970.03577.77
7.1.70.0100.02379.05
7.1.60.0290.03979.22
7.1.50.0280.01778.73
7.1.00.0070.11084.34
7.0.200.5750.01378.17
7.0.140.0170.10384.21
7.0.70.0470.11383.61
7.0.60.3500.11383.51
7.0.50.0230.10084.11
7.0.40.0300.05080.17
7.0.30.0270.07379.92
7.0.20.0230.11780.13
7.0.10.0300.11780.14
7.0.00.0400.09380.12
5.6.280.0200.12052.75
5.6.220.6330.5702019.38
5.6.210.0230.12051.78
5.6.200.0230.12352.36
5.6.190.0230.09052.37
5.6.180.0230.13752.38
5.6.170.0330.12752.22
5.6.160.0500.12352.66
5.6.150.0200.14052.23
5.6.140.0070.11052.41
5.6.130.0200.11052.91
5.6.120.0330.08752.37
5.6.110.0130.11752.45
5.6.100.0400.10752.22
5.6.90.0230.13352.36
5.6.80.0370.12351.70
5.6.70.0300.12352.21
5.6.60.0200.10351.70
5.6.50.0170.13351.86
5.6.40.0330.13351.73
5.6.30.0300.12051.60
5.6.20.0300.11751.76
5.6.10.0370.13751.85
5.6.00.0230.13351.73
5.5.360.0330.08351.78
5.5.350.0170.13351.70
5.5.340.0300.12052.08
5.5.330.0200.12052.42
5.5.320.0270.10751.93
5.5.310.0330.10751.96
5.5.300.0370.07752.53
5.5.290.0370.12752.15
5.5.280.0130.09352.16
5.5.270.0030.09352.17
5.5.260.0100.13352.68
5.5.250.0200.13751.75
5.5.240.0300.09751.54
5.5.230.0130.14051.54
5.5.220.0330.09751.54
5.5.210.0400.13351.54
5.5.200.0200.10751.43
5.5.190.0170.13351.50
5.5.180.0330.09751.72
5.5.160.0270.07051.53
5.5.150.0270.12051.39
5.5.140.0230.13351.50
5.5.130.0170.08751.50
5.5.120.0300.11751.94
5.5.110.0470.11051.23
5.5.100.0230.09051.41
5.5.90.0200.06751.23
5.5.80.0300.05351.39
5.5.70.0130.08051.64
5.5.60.0270.06351.29
5.5.50.0100.08351.34
5.5.40.0230.06751.43
5.5.30.0130.07051.57
5.5.20.0370.09751.33
5.5.10.0200.07051.35
5.5.00.0070.09051.37
5.4.450.0200.12050.69
5.4.440.0270.12051.09
5.4.430.0130.08050.49
5.4.420.0230.09050.51
5.4.410.0330.10350.61
5.4.400.0430.10750.37
5.4.390.0230.11750.07
5.4.380.0200.12050.10
5.4.370.6670.4532018.51
5.4.360.0270.10050.54
5.4.350.0130.13050.39
5.4.340.0370.10350.33
5.4.320.0330.12050.23
5.4.310.0170.13350.27
5.4.300.5530.5202018.20
5.4.290.0030.10750.07
5.4.280.0130.12050.07
5.4.270.0200.07350.55
5.4.260.0230.11350.25
5.4.250.0170.09750.42
5.4.240.0300.10050.58
5.4.230.0200.06750.27
5.4.220.0300.05350.75
5.4.210.0230.06750.36
5.4.200.0170.07050.50
5.4.190.0270.09350.28
5.4.180.0130.13350.26
5.4.170.0130.07050.33
5.4.160.0300.06050.38
5.4.150.0170.07350.61
5.4.140.0170.10048.05
5.4.130.0100.05747.70
5.4.120.0170.05047.62
5.4.110.0000.07747.55
5.4.100.0070.06047.76
5.4.90.0170.06047.55
5.4.80.0100.08047.54
5.4.70.0070.08347.63
5.4.60.0100.06747.55
5.4.50.0200.11347.83
5.4.40.0200.10347.70
5.4.30.0130.14047.62
5.4.20.0300.11747.97
5.4.10.0170.12747.75
5.4.00.0330.11746.85
5.3.290.0330.10346.54
5.3.280.0200.05345.89
5.3.270.0270.05045.89
5.3.260.0100.07046.00
5.3.250.0130.06346.59
5.3.240.0070.05746.57
5.3.230.0100.06046.04
5.3.220.0130.06346.44
5.3.210.0070.07746.46
5.3.200.0200.11046.14
5.3.190.0130.10045.97
5.3.180.0100.06346.42
5.3.170.0200.09746.41
5.3.160.0170.07345.96
5.3.150.0230.06746.25
5.3.140.0170.06346.25
5.3.130.0130.08345.86
5.3.120.0270.09345.85
5.3.110.0200.12346.16
5.3.100.0330.08045.46
5.3.90.0270.09745.32
5.3.80.0170.11045.36
5.3.70.0370.07345.23
5.3.60.0330.10045.58
5.3.50.0200.11745.61
5.3.40.0270.10745.34
5.3.30.0430.09045.14
5.3.20.0300.10044.91
5.3.10.0300.09045.05
5.3.00.0230.11045.63

preferences:
31.54 ms | 401 KiB | 5 Q