3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = array( '#tag', 'text #tag text', 'text #tag', 'text#tag', ); $res = preg_filter('/\B#(\S{1,24}+)/u', '#<$1>' , $var); print_r($res); echo preg_replace('/\b#(\S{1,24}+)/u', '#<$1>' , 'text#tag');

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.0120.00316.88
8.3.50.0090.00717.48
8.3.40.0060.01018.63
8.3.30.0030.01518.77
8.3.20.0080.00018.89
8.3.10.0040.00419.06
8.3.00.0000.00819.38
8.2.180.0110.01117.00
8.2.170.0100.01022.96
8.2.160.0070.01119.13
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0030.00519.95
8.2.110.0040.00421.18
8.2.100.0090.00318.03
8.2.90.0060.00318.30
8.2.80.0000.00817.97
8.2.70.0000.00817.80
8.2.60.0000.01018.16
8.2.50.0060.00318.10
8.2.40.0040.00421.13
8.2.30.0050.00319.26
8.2.20.0090.00017.95
8.2.10.0070.00017.89
8.2.00.0040.00417.86
8.1.280.0150.00625.92
8.1.270.0050.00323.99
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0000.01317.58
8.1.230.0040.00821.00
8.1.220.0040.00417.90
8.1.210.0050.00318.89
8.1.200.0030.00617.48
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0060.00318.72
8.1.160.0000.00719.10
8.1.150.0030.00518.64
8.1.140.0040.00417.48
8.1.130.0000.00719.43
8.1.120.0000.01017.59
8.1.110.0020.00517.57
8.1.100.0050.00317.46
8.1.90.0040.00417.52
8.1.80.0050.00317.53
8.1.70.0030.00517.41
8.1.60.0060.00617.62
8.1.50.0030.00617.55
8.1.40.0030.00617.48
8.1.30.0110.00017.79
8.1.20.0000.00817.69
8.1.10.0070.00017.52
8.1.00.0050.00317.63
8.0.300.0070.00019.80
8.0.290.0000.00916.88
8.0.280.0080.00018.52
8.0.270.0030.00317.28
8.0.260.0000.00617.02
8.0.250.0060.00317.19
8.0.240.0030.00617.04
8.0.230.0000.00817.06
8.0.220.0030.00817.08
8.0.210.0070.00017.11
8.0.200.0030.00317.09
8.0.190.0040.00417.10
8.0.180.0040.00416.93
8.0.170.0090.00016.98
8.0.160.0070.00017.06
8.0.150.0060.00317.05
8.0.140.0030.00616.97
8.0.130.0000.00513.39
8.0.120.0040.00416.82
8.0.110.0040.00417.00
8.0.100.0040.00417.01
8.0.90.0000.00716.98
8.0.80.0100.00717.12
8.0.70.0080.00016.95
8.0.60.0090.00017.13
8.0.50.0000.00717.16
8.0.30.0120.00817.48
8.0.20.0050.01417.08
8.0.10.0070.00017.21
8.0.00.0090.01316.99
7.4.330.0060.00013.12
7.4.320.0030.00316.69
7.4.300.0000.00816.69
7.4.290.0030.00316.69
7.4.280.0030.00316.64
7.4.270.0030.00316.65
7.4.260.0060.00013.52
7.4.250.0030.00516.70
7.4.240.0000.00716.69
7.4.230.0040.00416.62
7.4.220.0090.00916.81
7.4.210.0030.01016.80
7.4.200.0000.00916.63
7.4.190.0040.00416.62
7.4.160.0080.00816.83
7.4.150.0150.00316.57
7.4.140.0150.00317.86
7.4.130.0070.01816.83
7.4.120.0140.00316.71
7.4.110.0040.01416.52
7.4.100.0150.00316.66
7.4.90.0090.00916.66
7.4.80.0070.01019.39
7.4.70.0090.00616.70
7.4.60.0130.00416.52
7.4.50.0040.00416.45
7.4.40.0090.00616.47
7.4.30.0000.01816.80
7.4.00.0070.00715.22
7.3.330.0000.00613.13
7.3.320.0000.00513.16
7.3.310.0020.00516.29
7.3.300.0060.00016.34
7.3.290.0060.00916.36
7.3.280.0040.01116.20
7.3.270.0120.00616.20
7.3.260.0050.01916.45
7.3.240.0100.00716.59
7.3.230.0060.01216.68
7.3.210.0170.00016.31
7.3.200.0160.00016.43
7.3.190.0080.01016.66
7.3.180.0030.01616.71
7.3.170.0070.01016.58
7.3.160.0120.00616.51
7.3.120.0100.00615.21
7.2.330.0080.00816.70
7.2.320.0110.00716.62
7.2.310.0060.01216.82
7.2.300.0070.01016.74
7.2.290.0090.00916.68
7.2.00.0000.01319.38
7.1.200.0070.00415.70
7.1.100.0060.00618.09
7.1.70.0040.00417.27
7.1.60.0210.00319.21
7.1.50.0070.01816.95
7.1.00.0000.04322.34
7.0.200.0040.00416.83
7.0.140.0070.07022.15
7.0.120.0070.07022.09
7.0.60.0170.04320.02
7.0.50.0030.07317.89
7.0.40.0170.04720.06
7.0.30.0300.07720.42
7.0.20.0230.06020.25
7.0.10.0230.04320.25
7.0.00.0170.05320.18
5.6.280.0030.07321.14
5.6.210.0130.06720.66
5.6.200.0030.06018.14
5.6.190.0230.07720.50
5.6.180.0230.03720.45
5.6.170.0230.08020.57
5.6.160.0230.07020.46
5.6.150.0270.07720.17
5.6.140.0270.04720.40
5.6.130.0300.06320.50
5.6.120.0100.08020.34
5.6.110.0230.05020.39
5.6.100.0230.05720.39
5.6.90.0170.04720.30
5.6.80.0230.05319.68
5.6.70.0130.05019.90
5.6.60.0200.05319.79
5.6.50.0230.07719.82
5.6.40.0230.04019.69
5.6.30.0230.04719.68
5.6.20.0100.05719.88
5.6.10.0200.06019.69
5.6.00.0270.03319.52
5.5.350.0170.06720.40
5.5.340.0130.07318.09
5.5.330.0230.06720.40
5.5.320.0230.04320.23
5.5.310.0230.06020.25
5.5.300.0200.04720.30
5.5.290.0130.05020.32
5.5.280.0230.08019.97
5.5.270.0230.08320.23
5.5.260.0230.06720.13
5.5.250.0270.06720.13
5.5.240.0200.05719.68
5.5.230.0170.04719.68
5.5.220.0330.07019.39
5.5.210.0270.04019.35
5.5.200.0300.07019.43
5.5.190.0230.06319.32
5.5.180.0270.04319.32
5.5.160.0170.04319.38
5.5.150.0270.07019.33
5.5.140.0200.04019.48
5.5.130.0100.04319.64
5.5.120.0200.04019.32
5.5.110.0130.04019.63
5.5.100.0100.04019.23
5.5.90.0170.03719.46
5.5.80.0100.04319.39
5.5.70.0100.04719.54
5.5.60.0170.03719.45
5.5.50.0100.04719.44
5.5.40.0200.03319.21
5.5.30.0200.03319.52
5.5.20.0130.04019.43
5.5.10.0130.04019.20
5.5.00.0170.03719.30
5.4.450.0200.04719.41
5.4.440.0270.04319.48
5.4.430.0230.06719.47
5.4.420.0230.07319.47
5.4.410.0270.04019.07
5.4.400.0270.07719.25
5.4.390.0270.05719.09
5.4.380.0230.07319.15
5.4.370.0300.06718.84
5.4.360.0200.05018.84
5.4.350.0230.07319.20
5.4.340.0230.04019.15
5.4.320.0130.05719.25
5.4.310.0200.04719.00
5.4.300.0170.03718.97
5.4.290.0200.03319.11
5.4.280.0130.03719.01
5.4.270.0100.04319.14
5.4.260.0100.04019.14
5.4.250.0200.03018.92
5.4.240.0170.03319.15
5.4.230.0170.03319.11
5.4.220.0100.04019.23
5.4.210.0130.04019.15
5.4.200.0170.03719.07
5.4.190.0200.03719.13
5.4.180.0170.03318.99
5.4.170.0070.04318.84
5.4.160.0100.04018.83
5.4.150.0130.03719.22
5.4.140.0130.03716.55
5.4.130.0200.02716.34
5.4.120.0170.03016.25
5.4.110.0300.02716.42
5.4.100.0130.04016.44
5.4.90.0100.03716.47
5.4.80.0100.03716.38
5.4.70.0130.03316.48
5.4.60.0130.03316.25
5.4.50.0200.06016.35
5.4.40.0170.06016.46
5.4.30.0230.06716.38
5.4.20.0270.04716.46
5.4.10.0200.04016.38
5.4.00.0170.04315.86
5.3.290.0200.05314.82
5.3.280.0100.04014.64
5.3.270.0130.03714.60
5.3.260.0200.03714.77
5.3.250.0170.03714.60
5.3.240.0200.03714.59
5.3.230.0200.03314.64
5.3.220.0170.03714.55
5.3.210.0170.03714.45
5.3.200.0230.03014.58
5.3.190.0130.03714.60
5.3.180.0130.04014.63
5.3.170.0170.03014.44
5.3.160.0100.03714.45
5.3.150.0130.04014.61
5.3.140.0200.07314.58
5.3.130.0070.05314.59
5.3.120.0230.04714.59
5.3.110.0100.08014.57
5.3.100.0330.05014.18
5.3.90.0170.04013.95
5.3.80.0070.04713.96
5.3.70.0300.04714.02
5.3.60.0230.07014.00
5.3.50.0230.06713.96
5.3.40.0230.03713.95
5.3.30.0370.06313.90
5.3.20.0230.07013.65
5.3.10.0270.04313.70
5.3.00.0300.07313.63
5.2.170.0200.06712.23
5.2.160.0200.03312.23
5.2.150.0370.02312.23
5.2.140.0230.05712.23
5.2.130.0300.04012.23
5.2.120.0200.05712.23
5.2.110.0200.03012.23
5.2.100.0130.03012.23
5.2.90.0170.03312.23
5.2.80.0130.05312.23
5.2.70.0200.05712.23
5.2.60.0170.06012.23
5.2.50.0200.05012.23
5.2.40.0200.04012.23
5.2.30.0100.05012.23
5.2.20.0100.05712.23
5.2.10.0100.03712.23
5.2.00.0130.03712.23
5.1.60.0130.02712.23
5.1.50.0100.03712.23
5.1.40.0200.03012.23
5.1.30.0070.03312.23
5.1.20.0200.05312.23
5.1.10.0130.03712.23
5.1.00.0170.03012.23
5.0.50.0130.02312.23
5.0.40.0130.02312.23
5.0.30.0070.04012.23
5.0.20.0130.03712.23
5.0.10.0030.03312.23
5.0.00.0170.04712.23
4.4.90.0070.03712.23
4.4.80.0100.02712.23
4.4.70.0100.01312.23
4.4.60.0030.02012.23
4.4.50.0030.02312.23
4.4.40.0070.03012.23
4.4.30.0030.03012.23
4.4.20.0100.02712.23
4.4.10.0130.02012.23
4.4.00.0030.03012.23
4.3.110.0070.01712.23
4.3.100.0130.03012.23
4.3.90.0130.02712.23
4.3.80.0030.03012.23
4.3.70.0100.02312.23
4.3.60.0070.03712.23
4.3.50.0100.02712.23
4.3.40.0070.05312.23
4.3.30.0000.02712.23
4.3.20.0030.02012.23
4.3.10.0030.02312.23
4.3.00.0000.04012.23

preferences:
70.18 ms | 401 KiB | 5 Q