3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = array( '#tag', 'text #tag text', 'text #tag', 'text#tag', ); $res = preg_replace('/(?<!\S)#\S{1,24}+(?!\S)/u', '<$0>' , $var); print_r($res); echo preg_replace('/\B#(\S{1,24}+)/u', '<$0>' , '#111 тапинамбур#222 #333 #444');

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.0100.01018.77
8.3.50.0110.00722.03
8.3.40.0070.01419.01
8.3.30.0000.01518.96
8.3.20.0040.00418.91
8.3.10.0030.00621.04
8.3.00.0000.00823.53
8.2.180.0060.01216.75
8.2.170.0140.00022.96
8.2.160.0120.00320.57
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00421.25
8.2.110.0030.00620.35
8.2.100.0040.00817.97
8.2.90.0060.00319.21
8.2.80.0040.00419.28
8.2.70.0060.00617.88
8.2.60.0060.00317.93
8.2.50.0090.00018.07
8.2.40.0000.00818.28
8.2.30.0040.00419.47
8.2.20.0060.00319.77
8.2.10.0040.00417.88
8.2.00.0060.00618.03
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.59
8.1.230.0070.00420.96
8.1.220.0040.00418.77
8.1.210.0030.00618.90
8.1.200.0060.00317.35
8.1.190.0040.00417.55
8.1.180.0060.00318.10
8.1.170.0040.00420.44
8.1.160.0050.00218.82
8.1.150.0040.00418.84
8.1.140.0070.00017.59
8.1.130.0000.00717.96
8.1.120.0000.00717.59
8.1.110.0040.00417.57
8.1.100.0040.00417.55
8.1.90.0020.00517.46
8.1.80.0000.00717.49
8.1.70.0030.00317.41
8.1.60.0000.00917.66
8.1.50.0050.00317.52
8.1.40.0030.00517.60
8.1.30.0040.00417.69
8.1.20.0030.00617.80
8.1.10.0040.00417.64
8.1.00.0070.00017.55
8.0.300.0000.00719.98
8.0.290.0040.00417.16
8.0.280.0000.00718.46
8.0.270.0070.00017.29
8.0.260.0050.00317.09
8.0.250.0080.00017.14
8.0.240.0000.00817.21
8.0.230.0000.00917.04
8.0.220.0040.00417.00
8.0.210.0030.00317.06
8.0.200.0000.00717.03
8.0.190.0030.00517.20
8.0.180.0040.00417.04
8.0.170.0000.00717.02
8.0.160.0000.00716.95
8.0.150.0050.00216.93
8.0.140.0000.00716.89
8.0.130.0030.00313.56
8.0.120.0030.00717.02
8.0.110.0000.00717.14
8.0.100.0000.00716.98
8.0.90.0000.00717.11
8.0.80.0090.00617.09
8.0.70.0040.00417.14
8.0.60.0040.00417.01
8.0.50.0000.00717.07
8.0.30.0130.00617.18
8.0.20.0070.01317.40
8.0.10.0050.00317.13
8.0.00.0100.01116.91
7.4.330.0000.00615.14
7.4.320.0040.00416.58
7.4.300.0000.00616.80
7.4.290.0000.00716.72
7.4.280.0030.00316.61
7.4.270.0030.00316.73
7.4.260.0030.00313.43
7.4.250.0030.00616.70
7.4.240.0080.00016.63
7.4.230.0000.00716.82
7.4.220.0070.01116.67
7.4.210.0070.00916.75
7.4.200.0000.00716.70
7.4.190.0000.00716.56
7.4.160.0160.00716.69
7.4.150.0150.00917.40
7.4.140.0100.01317.86
7.4.130.0100.00716.75
7.4.120.0090.00916.84
7.4.110.0100.01016.76
7.4.100.0110.00616.81
7.4.90.0190.00516.50
7.4.80.0120.00619.39
7.4.70.0150.00316.79
7.4.60.0080.00816.66
7.4.50.0000.00816.69
7.4.40.0040.01522.77
7.4.30.0120.00616.60
7.4.00.0120.00515.22
7.3.330.0000.00613.19
7.3.320.0060.00013.26
7.3.310.0030.00316.42
7.3.300.0000.00716.40
7.3.290.0100.00316.36
7.3.280.0050.01316.36
7.3.270.0100.00717.40
7.3.260.0090.00718.24
7.3.250.0100.00716.50
7.3.240.0070.01016.41
7.3.230.0040.01416.39
7.3.210.0140.00316.65
7.3.200.0090.00919.39
7.3.190.0090.00916.76
7.3.180.0070.01016.42
7.3.170.0060.01216.60
7.3.160.0140.00616.43
7.3.120.0050.01214.93
7.3.110.0070.01114.89
7.3.100.0120.00614.73
7.3.90.0070.00715.05
7.3.80.0090.00614.74
7.3.70.0090.00314.60
7.3.60.0090.00614.98
7.3.50.0030.01014.75
7.3.40.0000.01114.94
7.3.30.0040.00814.94
7.3.20.0040.01116.87
7.3.10.0070.00916.78
7.3.00.0030.01116.59
7.2.330.0140.00616.91
7.2.320.0070.01116.76
7.2.310.0030.01416.81
7.2.300.0080.00816.75
7.2.290.0090.00616.63
7.2.250.0090.00915.19
7.2.240.0170.00014.86
7.2.230.0100.00714.95
7.2.220.0030.00615.15
7.2.210.0090.00015.25
7.2.200.0070.00714.93
7.2.190.0030.00915.04
7.2.180.0100.00615.32
7.2.170.0030.00615.30
7.2.130.0040.00716.98
7.2.120.0060.00616.79
7.2.110.0000.01116.84
7.2.100.0070.00716.97
7.2.90.0070.00717.02
7.2.80.0060.01216.83
7.2.70.0100.00017.17
7.2.60.0060.00917.02
7.2.50.0060.00917.04
7.2.40.0100.00717.01
7.2.30.0080.00517.13
7.2.20.0040.00716.94
7.2.10.0070.01116.79
7.2.00.0040.01118.43
7.1.330.0070.00716.00
7.1.320.0000.00915.83
7.1.310.0040.00816.02
7.1.300.0120.00315.91
7.1.290.0030.01016.04
7.1.280.0080.00415.87
7.1.270.0070.01015.91
7.1.260.0100.00315.82
7.1.250.0000.00915.73
7.1.200.0030.01015.96
7.1.100.0080.00418.42
7.1.70.0000.00817.25
7.1.60.0040.00817.41
7.1.50.0090.01217.10
7.1.00.0030.05722.39
7.0.200.0120.00316.83
7.0.140.0000.07322.04
7.0.100.0100.03719.92
7.0.90.0170.04019.85
7.0.80.0030.07319.93
7.0.70.0130.08319.91
7.0.60.0070.08319.92
7.0.50.0300.03320.25
7.0.40.0030.07020.10
7.0.30.0100.08019.95
7.0.20.0170.07320.05
7.0.10.0100.07720.10
7.0.00.0030.07320.12
5.6.280.0070.07021.11
5.6.250.0100.03720.49
5.6.240.0070.07320.69
5.6.230.0070.07020.62
5.6.220.0070.04020.61
5.6.210.0130.07720.58
5.6.200.0130.05321.00
5.6.190.0070.04321.05
5.6.180.0030.05321.03
5.6.170.0100.06021.07
5.6.160.0070.08021.04
5.6.150.0130.05721.09
5.6.140.0030.04021.04
5.6.130.0070.05720.95
5.6.120.0030.08720.96
5.6.110.0070.05721.11
5.6.100.0030.08021.15
5.6.90.0130.07320.91
5.6.80.0100.07020.40
5.6.70.0070.06020.33
5.6.60.0070.03720.40
5.6.50.0070.03720.44
5.6.40.0030.08320.38
5.6.30.0100.06020.41
5.6.20.0130.06720.39
5.6.10.0070.08320.38
5.6.00.0070.04720.50
5.5.380.0100.06720.37
5.5.370.0070.04320.34
5.5.360.0100.07020.38
5.5.350.0100.03720.40
5.5.340.0170.07720.77
5.5.330.0070.03720.87
5.5.320.0070.08320.79
5.5.310.0030.04320.82
5.5.300.0030.08720.91
5.5.290.0070.05320.88
5.5.280.0130.07020.72
5.5.270.0100.06720.82
5.5.260.0030.05020.74
5.5.250.0100.07020.45
5.5.240.0000.04320.17
5.5.230.0070.06320.23
5.5.220.0030.06020.20
5.5.210.0100.06320.17
5.5.200.0100.03320.11
5.5.190.0030.04320.25
5.5.180.0030.08320.10
5.5.160.0100.05320.20
5.5.150.0130.07020.27
5.5.140.0030.08020.23
5.5.130.0100.06720.25
5.5.120.0000.07020.19
5.5.110.0070.07020.09
5.5.100.0100.05320.15
5.5.90.0000.06720.14
5.5.80.0030.03719.91
5.5.70.0030.05020.06
5.5.60.0100.03320.11
5.5.50.0000.06020.02
5.5.40.0000.04320.08
5.5.30.0000.04720.04
5.5.20.0030.04020.04
5.5.10.0000.04720.12
5.5.00.0070.03720.07
5.4.450.0070.07719.47
5.4.440.0100.06319.36
5.4.430.0070.07019.17
5.4.420.0100.07019.22
5.4.410.0100.07319.23
5.4.400.0070.07719.14
5.4.390.0030.04019.12
5.4.380.0070.07019.05
5.4.370.0130.06319.18
5.4.360.0100.07018.90
5.4.350.0100.05319.14
5.4.340.0100.03019.04
5.4.320.0070.04019.23
5.4.310.0070.06719.21
5.4.300.0000.08319.07
5.4.290.0100.04319.04
5.4.280.0100.03318.90
5.4.270.0130.06719.02
5.4.260.0070.07319.18
5.4.250.0070.07019.02
5.4.240.0070.06019.20
5.4.230.0070.06319.04
5.4.220.0070.06719.02
5.4.210.0030.04019.04
5.4.200.0000.04019.15
5.4.190.0030.04319.13
5.4.180.0070.03319.16
5.4.170.0070.03719.05
5.4.160.0000.04319.10
5.4.150.0070.03718.94
5.4.140.0230.02016.45
5.4.130.0070.03716.44
5.4.120.0000.04016.24
5.4.110.0030.03716.33
5.4.100.0030.03716.43
5.4.90.0070.03316.46
5.4.80.0030.03316.46
5.4.70.0030.03016.43
5.4.60.0030.03016.44
5.4.50.0030.03716.31
5.4.40.0100.04316.31
5.4.30.0070.03016.40
5.4.20.0030.03716.40
5.4.10.0030.03716.32
5.4.00.0030.02715.69
5.3.290.0130.03014.60
5.3.280.0100.04314.58
5.3.270.0030.03714.57
5.3.260.0030.03714.70
5.3.250.0030.03714.62
5.3.240.0070.04014.61
5.3.230.0000.03714.64
5.3.220.0070.03314.49
5.3.210.0030.03714.45
5.3.200.0030.04014.48
5.3.190.0000.03314.61
5.3.180.0000.04014.56
5.3.170.0030.03714.70
5.3.160.0070.03314.58
5.3.150.0030.03014.48
5.3.140.0030.03014.61
5.3.130.0030.04014.61
5.3.120.0030.03314.52
5.3.110.0030.03014.46
5.3.100.0030.04314.09
5.3.90.0130.03714.07
5.3.80.0000.03313.93
5.3.70.0000.04014.02
5.3.60.0030.03014.08
5.3.50.0030.03713.86
5.3.40.0000.03314.07
5.3.30.0000.03314.02
5.3.20.0100.02713.79
5.3.10.0030.02713.74
5.3.00.0000.03313.64
5.2.170.0070.02011.15
5.2.160.0030.02711.14
5.2.150.0070.03011.02
5.2.140.0000.03011.24
5.2.130.0000.03010.95
5.2.120.0070.02011.12
5.2.110.0000.03010.99
5.2.100.0000.02711.09
5.2.90.0030.02311.15
5.2.80.0070.02311.07
5.2.70.0030.03011.14
5.2.60.0070.02311.13
5.2.50.0100.01711.01
5.2.40.0030.02711.08
5.2.30.0030.02311.08
5.2.20.0030.02311.06
5.2.10.0000.02710.80
5.2.00.0030.02310.64
5.1.60.0070.0209.83
5.1.50.0070.02310.02
5.1.40.0000.02010.03
5.1.30.0070.02010.26
5.1.20.0030.02010.35
5.1.10.0030.02010.16
5.1.00.0000.02310.14
5.0.50.0070.0138.56
5.0.40.0000.0208.50
5.0.30.0000.0278.50
5.0.20.0070.0138.50
5.0.10.0000.0338.50
5.0.00.0100.0538.50
4.4.90.0000.0138.50
4.4.80.0000.0138.50
4.4.70.0000.0178.50
4.4.60.0030.0108.50
4.4.50.0030.0138.50
4.4.40.0000.0238.50
4.4.30.0000.0138.50
4.4.20.0000.0178.50
4.4.10.0000.0178.50
4.4.00.0030.0278.50
4.3.110.0000.0178.50
4.3.100.0000.0138.50
4.3.90.0000.0278.50
4.3.80.0000.0538.50
4.3.70.0000.0138.50
4.3.60.0030.0308.50
4.3.50.0030.0138.50
4.3.40.0000.0408.50
4.3.30.0000.0208.50
4.3.20.0030.0338.50
4.3.10.0000.0378.50
4.3.00.0070.0308.50

preferences:
55.86 ms | 400 KiB | 5 Q