3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = ' sdfsdaf sdafadsf #test sdfdsf'; $text = preg_replace('%(\A#(\w|(\p{L}\p{M}?)|-)+\b)|((?<=\s)#(\w|(\p{L}\p{M}?)|-)+\b)|((?<=\[)#.+?(?=\]))%u', '<a class="hashtag" href="https://google.com/?q='.urlencode('$4').'" target="_blank">$4</a>', $text, 10); echo ($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.3.60.0090.00918.55
8.3.50.0110.01021.25
8.3.40.0150.00019.00
8.3.30.0180.00019.13
8.3.20.0040.00420.33
8.3.10.0000.00823.39
8.3.00.0040.00419.50
8.2.180.0190.00616.63
8.2.170.0040.01122.96
8.2.160.0070.01020.35
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00722.21
8.2.110.0070.00319.14
8.2.100.0120.00018.08
8.2.90.0050.00319.24
8.2.80.0000.00817.97
8.2.70.0050.00317.85
8.2.60.0000.00917.93
8.2.50.0030.00618.07
8.2.40.0030.00820.00
8.2.30.0050.00218.08
8.2.20.0050.00217.91
8.2.10.0030.00618.19
8.2.00.0050.00218.05
8.1.280.0090.00625.92
8.1.270.0060.00322.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00321.52
8.1.230.0090.00317.64
8.1.220.0000.00817.91
8.1.210.0040.00418.77
8.1.200.0030.00617.47
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0030.00518.77
8.1.160.0000.00722.04
8.1.150.0000.00819.05
8.1.140.0070.00017.59
8.1.130.0070.00017.85
8.1.120.0070.00017.59
8.1.110.0040.00417.55
8.1.100.0000.00817.67
8.1.90.0040.00417.51
8.1.80.0070.00017.59
8.1.70.0030.00317.50
8.1.60.0030.00617.64
8.1.50.0060.00317.58
8.1.40.0000.00817.59
8.1.30.0030.00617.84
8.1.20.0040.00417.82
8.1.10.0040.00417.66
8.1.00.0000.00817.59
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0040.00418.46
8.0.270.0040.00417.29
8.0.260.0030.00317.30
8.0.250.0000.00717.08
8.0.240.0000.00717.08
8.0.230.0000.00817.15
8.0.220.0050.00517.18
8.0.210.0040.00417.12
8.0.200.0070.00017.16
8.0.190.0040.00417.05
8.0.180.0030.00517.12
8.0.170.0040.00417.13
8.0.160.0000.00717.19
8.0.150.0050.00316.96
8.0.140.0090.00316.98
8.0.130.0000.00513.52
8.0.120.0030.00617.19
8.0.110.0080.00017.19
8.0.100.0000.00817.24
8.0.90.0080.00017.23
8.0.80.0060.00917.16
8.0.70.0070.00016.96
8.0.60.0070.00017.23
8.0.50.0000.00816.98
8.0.30.0110.00817.22
8.0.20.0100.00917.46
8.0.10.0030.00617.22
8.0.00.0110.00616.89
7.4.330.0000.00415.00
7.4.320.0000.00716.83
7.4.300.0000.00716.81
7.4.290.0030.00316.83
7.4.280.0060.00616.61
7.4.270.0070.00016.80
7.4.260.0000.00716.62
7.4.250.0040.00416.70
7.4.240.0050.00216.76
7.4.230.0050.00316.62
7.4.220.0110.00816.72
7.4.210.0040.01116.87
7.4.200.0040.00316.57
7.4.160.0140.00716.71
7.4.150.0120.00917.40
7.4.140.0100.01117.86
7.4.130.0110.00716.59
7.4.120.0140.00316.73
7.4.110.0070.01016.68
7.4.100.0090.00916.66
7.4.90.0070.01016.45
7.4.80.0090.00919.39
7.4.70.0030.01316.58
7.4.60.0090.00816.73
7.4.50.0000.00416.72
7.4.40.0030.01416.74
7.4.30.0130.01016.79
7.4.00.0030.01215.31
7.3.330.0020.00213.38
7.3.320.0030.00313.22
7.3.310.0040.00416.46
7.3.300.0070.00016.45
7.3.290.0030.01216.47
7.3.280.0100.01016.50
7.3.270.0180.00017.40
7.3.260.0070.01116.70
7.3.250.0130.00516.70
7.3.240.0170.00316.78
7.3.230.0070.00916.70
7.3.210.0160.00316.84
7.3.200.0110.00719.39
7.3.190.0170.00316.66
7.3.180.0120.00916.71
7.3.170.0170.00616.61
7.3.160.0080.00816.68
7.2.330.0130.00316.95
7.2.320.0120.00416.86
7.2.310.0120.01216.90
7.2.300.0070.01016.68
7.2.290.0090.00916.75
7.2.60.0040.00817.28
7.2.00.0030.00919.65
7.1.200.0230.00315.91
7.1.100.0040.01218.48
7.1.70.0040.00417.25
7.1.60.0070.01819.11
7.1.50.0340.00435.09
7.1.00.0070.06722.57
7.0.200.0030.00517.04
7.0.140.0100.06322.09
7.0.60.0030.05719.95
7.0.50.0130.07717.94
7.0.40.0030.06020.21
7.0.30.0270.07720.26
7.0.20.0170.04720.16
7.0.10.0130.08720.19
7.0.00.0000.05020.18
5.6.280.0100.06720.91
5.6.210.0030.08020.50
5.6.200.0100.03718.12
5.6.190.0030.04320.39
5.6.180.0270.05020.41
5.6.170.0130.07720.46
5.6.160.0030.05720.37
5.6.150.0100.03318.13
5.6.140.0100.08018.09
5.6.130.0070.08018.17
5.6.120.0030.08020.76
5.6.110.0070.04721.03
5.6.100.0130.06320.95
5.6.90.0030.09021.11
5.6.80.0130.06020.43
5.5.350.0170.07720.32
5.5.340.0030.04317.95
5.5.330.0000.05720.37
5.5.320.0330.05020.51
5.5.310.0200.05720.41
5.5.300.0070.06717.91
5.5.290.0000.09317.95
5.5.280.0100.03720.84
5.5.270.0030.09020.59
5.5.260.0070.05320.76
5.5.250.0130.04720.45
5.5.240.0170.07320.25
5.4.450.0930.05319.11
5.4.440.0970.05019.41
5.4.430.0700.07319.60
5.4.420.0630.00019.48
5.4.410.0870.00019.42
5.4.400.0670.00019.39
5.4.390.0770.00019.16
5.4.380.0670.00019.07
5.4.370.0830.00019.26
5.4.360.0800.00019.09
5.4.350.0870.00019.26
5.4.340.0050.03911.97
5.4.320.0040.03912.45
5.4.310.0080.03912.45
5.4.300.0080.04012.45
5.4.290.0070.03712.45
5.4.280.0060.03512.34
5.4.270.0040.03912.35
5.4.260.0090.03912.34
5.4.250.0050.04812.34
5.4.240.0090.03312.35
5.4.230.0090.03512.34
5.4.220.0050.03612.34
5.4.210.0030.03712.34
5.4.200.0020.04112.34
5.4.190.0080.03512.33
5.4.180.0100.04712.33
5.4.170.0060.03712.34
5.4.160.0060.03612.34
5.4.150.0030.03712.34
5.4.140.0070.03512.02
5.4.130.0040.03712.01
5.4.120.0070.03311.96
5.4.110.0060.03411.96
5.4.100.0040.03511.96
5.4.90.0070.03511.96
5.4.80.0040.04011.96
5.4.70.0060.04011.96
5.4.60.0050.04111.96
5.4.50.0050.04311.96
5.4.40.0050.03511.95
5.4.30.0050.03511.95
5.4.20.0120.04011.95
5.4.10.0120.03511.95
5.4.00.0050.03611.44
5.3.290.0090.04612.80
5.3.280.0080.03712.71
5.3.270.0060.04712.73
5.3.260.0080.03612.72
5.3.250.0060.03712.72
5.3.240.0060.03612.72
5.3.230.0090.03412.71
5.3.220.0050.03812.68
5.3.210.0070.03612.68
5.3.200.0070.03612.68
5.3.190.0050.03812.67
5.3.180.0050.03712.67
5.3.170.0050.03612.67
5.3.160.0040.03812.67
5.3.150.0060.03612.67
5.3.140.0060.03512.66
5.3.130.0070.03712.66
5.3.120.0050.04412.66
5.3.110.0070.03712.66
5.3.100.0040.03812.12
5.3.90.0080.03612.08
5.3.80.0050.03612.08
5.3.70.0090.04212.07
5.3.60.0050.03712.06
5.3.50.0060.03512.00
5.3.40.0050.04812.00
5.3.30.0060.03411.95
5.3.20.0060.03811.73
5.3.10.0030.04611.70
5.3.00.0050.03711.69
5.2.170.0050.0309.19
5.2.160.0050.0289.19
5.2.150.0040.0339.19
5.2.140.0030.0339.19
5.2.130.0050.0309.15
5.2.120.0030.0319.15
5.2.110.0060.0289.15
5.2.100.0030.0309.15
5.2.90.0060.0279.15
5.2.80.0040.0319.14
5.2.70.0040.0349.14
5.2.60.0040.0369.10
5.2.50.0050.0319.07
5.2.40.0020.0369.05
5.2.30.0060.0379.03
5.2.20.0050.0329.02
5.2.10.0040.0308.91
5.2.00.0040.0518.78
5.1.60.0060.0288.06
5.1.50.0040.0258.05
5.1.40.0050.0248.04
5.1.30.0040.0268.39
5.1.20.0050.0338.41
5.1.10.0090.0288.14
5.1.00.0050.0298.13
5.0.50.0010.0226.61
5.0.40.0050.0176.48
5.0.30.0030.0316.29
5.0.20.0030.0256.26
5.0.10.0030.0276.23
5.0.00.0060.0436.23
4.4.90.0040.0204.77
4.4.80.0030.0144.76
4.4.70.0070.0254.75
4.4.60.0040.0284.76
4.4.50.0030.0154.77
4.4.40.0030.0254.70
4.4.30.0020.0164.76
4.4.20.0030.0224.84
4.4.10.0030.0154.85
4.4.00.0010.0274.76
4.3.110.0040.0144.67
4.3.100.0020.0154.67
4.3.90.0010.0164.63
4.3.80.0030.0244.58
4.3.70.0030.0154.63
4.3.60.0030.0144.62
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0030.0153.29
4.3.20.0020.0163.26
4.3.10.0010.0163.22
4.3.00.0170.0207.10

preferences:
47.47 ms | 401 KiB | 5 Q