3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<TEXT It's essential to keep your pup cool in the summer months! Try to keep them out of the heat as much as #possible - keep the house cool, #provide shade and run a #fan for them if #you can. #Dogs #Animals #Summer #DogCare #Humidity #HeatStroke #Cooling #HeatExhaustion #StayCool #HealthyPups TEXT; echo preg_replace('/ ((?:#[a-z]+\s*)+)$/i', "\n\n$1", $text);

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.4.120.0100.00620.48
8.4.110.0100.00319.00
8.4.100.0130.00718.61
8.4.90.0070.00220.91
8.4.80.0150.00318.91
8.4.70.0040.00618.81
8.4.60.0090.00819.06
8.4.50.0130.00919.58
8.4.40.0040.00420.58
8.4.30.0100.01021.98
8.4.20.0130.00717.90
8.4.10.0060.00323.81
8.3.250.0110.00818.77
8.3.240.0110.00816.45
8.3.230.0110.00816.52
8.3.220.0040.00418.82
8.3.210.0050.00418.39
8.3.200.0060.00316.61
8.3.190.0090.01016.88
8.3.180.0080.01016.74
8.3.170.0090.01318.94
8.3.160.0120.00318.67
8.3.150.0060.01220.54
8.3.140.0040.00416.86
8.3.130.0040.00418.47
8.3.120.0060.00618.98
8.3.110.0000.00816.64
8.3.100.0040.00416.65
8.3.90.0110.00326.77
8.3.80.0030.00616.88
8.3.70.0150.00716.58
8.3.60.0070.01116.36
8.3.50.0060.01216.77
8.3.40.0140.00020.48
8.3.30.0140.00020.73
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.290.0090.00922.18
8.2.280.0130.00618.71
8.2.270.0070.01317.12
8.2.260.0140.00420.54
8.2.250.0160.00316.84
8.2.240.0070.00318.92
8.2.230.0070.01420.94
8.2.220.0090.00024.06
8.2.210.0040.00426.77
8.2.200.0100.00016.88
8.2.190.0150.00016.74
8.2.180.0070.01416.75
8.2.170.0000.01519.21
8.2.160.0100.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00819.12
8.2.120.0050.00326.16
8.2.110.0060.00322.20
8.2.100.0090.00317.97
8.2.90.0080.00017.88
8.2.80.0080.00019.04
8.2.70.0040.00417.75
8.2.60.0160.00217.75
8.2.50.0150.00317.63
8.2.40.0130.00317.72
8.2.30.0080.00817.62
8.2.20.0130.00317.38
8.2.10.0080.00817.50
8.2.00.0060.01117.50
8.1.330.0080.01121.98
8.1.320.0090.01016.33
8.1.310.0130.00316.55
8.1.300.0100.01016.24
8.1.290.0030.00630.84
8.1.280.0140.00025.92
8.1.270.0050.00324.66
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0050.00520.70
8.1.230.0040.00817.83
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00517.38
8.1.190.0050.01016.86
8.1.180.0130.00317.10
8.1.170.0000.01617.38
8.1.160.0130.00317.00
8.1.150.0100.00717.13
8.1.140.0170.00017.38
8.1.130.0090.00917.25
8.1.120.0180.00017.25
8.1.110.0120.00617.38
8.1.100.0220.00016.75
8.1.90.0100.00717.36
8.1.80.0120.00417.25
8.1.70.0130.00317.34
8.1.60.0060.01217.38
8.1.50.0100.00717.38
8.1.40.0130.00417.38
8.1.30.0120.00517.10
8.1.20.0130.00517.25
8.1.10.0180.00017.25
8.1.00.0130.00517.34
8.0.300.0050.00218.77
8.0.290.0000.00816.88
8.0.280.0120.00416.72
8.0.270.0100.00716.63
8.0.260.0120.00416.52
8.0.250.0160.00016.52
8.0.240.0130.00316.75
8.0.230.0050.01116.62
8.0.220.0080.00816.60
8.0.210.0110.00316.52
8.0.200.0120.00416.75
8.0.190.0060.00616.72
8.0.180.0140.00016.86
8.0.170.0140.00016.61
8.0.160.0130.00516.73
8.0.150.0170.00016.52
8.0.140.0100.00716.63
8.0.130.0110.00616.63
8.0.120.0140.00316.52
8.0.110.0100.00816.63
8.0.100.0180.00016.75
8.0.90.0140.00316.52
8.0.80.0120.00316.52
8.0.70.0130.00216.52
8.0.60.0090.00416.90
8.0.50.0050.01116.52
8.0.30.0130.00416.74
8.0.20.0140.00316.61
8.0.10.0120.00316.52

preferences:
28.96 ms | 403 KiB | 5 Q