3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML 税务调查。 [caption id="attachment_111" align="aligncenter" width="100"]<img src="https://royaldesign.com/image/11/gubi-moon-dining-table-round-120-h73-3?w=168&quality=80" alt="拜登与儿子。" width="100" height="100" class="size-full wp-image" /> 拜登与儿子。[/caption] 他在声明中说:“我会非常认真地调查,往来。” <img src="https://royaldesign.com/image/11/gubi-moon-dining-table-round-120-h73-3?w=168&quality=80" alt="拜登总统" width="100" height="100" class="aligncenter size-full wp-image" /> <div style="position:relative; overflow:hidden"> <iframe src="https://cdn.google.com/players/VM.html" width="100" height="100" frameborder="0" scrolling="auto" title="大促销 拜登的美国" style="position:absolute;"></iframe> </div> <iframe style="border: none; overflow: hidden;" src="https://www.facebook.com/plugins/video.php?height=100&amp;href=https%3A%2F%2Fwww.facebook.com;width=100&amp;t=0" width="100" height="100" frameborder="0" allowfullscreen="allowfullscreen"></iframe> <iframe src="https://www.facebook.com/plugins/video.php?height=400&href=https%3A%2F%2&show_text=false&width=100&t=0" width="100" height="100" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowfullscreen="true" allow="autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share" allowFullScreen="true"></iframe> <b>更多热点</b> <p>halo拜登也指美国经济不会衰退</p> <figure id="attachment_279" style="width: 100px" class="wp-caption alignnone"><img class="size-full wp-imag" src="https://royaldesign.com/image/11/gubi-moon-dining-table-round-120-h73-3?w=168&quality=80" alt="修理厂商总会拜登城" width="100" height="100" /><figcaption class="wp-caption-text">修理厂商总会拜登城</figcaption></figure> <a href="http://google.com">go to google</a> <span style="color: #ff6600;"><strong>另外,拜登声明中说</strong></span> HTML; $tags = ["拜登", "认真"]; $blacklisted = implode( '|', array_map( fn($tag) => "<{$tag}[ >].+?" . ($tag === 'img' ? "/>" : "</$tag>"), ['a', 'img', 'iframe', 'figure', 'figcaption'] ) ); echo preg_replace( sprintf('~(?:\[caption[ \]].+?\[/caption]|%s)(*SKIP)(*FAIL)|%s~us', $blacklisted, implode('|', $tags)), '<span class="article-tag"><a class="mytag" href="http://outside.com">$0</a></span>', $html );

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.0120.00724.23
8.4.110.0070.01118.77
8.4.100.0090.00919.01
8.4.90.0100.01022.27
8.4.80.0070.00418.93
8.4.70.0050.00517.96
8.4.60.0100.01117.85
8.4.50.0110.01018.73
8.4.40.0090.00620.57
8.4.30.0070.00420.36
8.4.20.0130.00717.92
8.4.10.0040.00422.13
8.3.250.0110.00818.80
8.3.240.0120.00516.97
8.3.230.0110.00816.77
8.3.220.0120.00718.93
8.3.210.0160.00517.01
8.3.200.0140.00616.90
8.3.190.0060.00217.30
8.3.180.0050.00619.03
8.3.170.0160.00318.63
8.3.160.0160.00317.45
8.3.150.0120.00617.47
8.3.140.0080.00819.00
8.3.130.0060.00318.89
8.3.120.0000.01019.14
8.3.110.0040.00420.94
8.3.100.0100.00724.06
8.3.90.0040.00426.77
8.3.80.0030.00617.13
8.3.70.0070.01117.00
8.3.60.0160.00316.88
8.3.50.0040.01120.23
8.3.40.0060.00921.74
8.3.30.0040.01118.81
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0110.00916.71
8.2.280.0150.00416.86
8.2.270.0150.00421.03
8.2.260.0140.00016.69
8.2.250.0090.00917.02
8.2.240.0050.00517.49
8.2.230.0030.00622.58
8.2.220.0120.00937.54
8.2.210.0080.00026.77
8.2.200.0030.00616.50
8.2.190.0120.00316.75
8.2.180.0210.00025.92
8.2.170.0120.00619.06
8.2.160.0130.00022.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0030.00619.73
8.2.110.0030.00622.38
8.2.100.0080.00417.97
8.2.90.0080.00018.09
8.2.80.0080.00018.22
8.2.70.0030.00517.88
8.2.60.0030.00517.93
8.2.50.0040.00418.07
8.2.40.0040.00418.34
8.2.30.0040.00418.12
8.2.20.0060.00322.26
8.2.10.0030.00518.26
8.2.00.0000.00719.47
8.1.330.0120.00716.21
8.1.320.0150.00316.14
8.1.310.0090.00916.48
8.1.300.0090.00618.29
8.1.290.0060.00630.84
8.1.280.0110.00725.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00022.60
8.1.230.0070.00421.04
8.1.220.0080.00018.03
8.1.210.0050.00318.92
8.1.200.0030.00617.72
8.1.190.0030.00617.60
8.1.180.0060.00318.10
8.1.170.0050.00318.63
8.1.160.0050.00318.97
8.1.150.0070.00018.98
8.1.140.0050.00317.74
8.1.130.0000.00717.74
8.1.120.0040.00417.69
8.1.110.0040.00417.52
8.1.100.0060.00317.64
8.1.90.0030.00517.68
8.1.80.0000.00817.50
8.1.70.0160.00017.56
8.1.60.0130.00517.72
8.1.50.0180.00017.66
8.1.40.0120.00617.57
8.1.30.0110.00817.81
8.1.20.0090.00917.82
8.1.10.0120.00617.74
8.1.00.0060.01217.47
8.0.300.0000.00920.21
8.0.290.0030.00517.13
8.0.280.0070.00018.40
8.0.270.0070.00018.29
8.0.260.0050.00317.10
8.0.250.0030.00317.27
8.0.240.0030.00317.28
8.0.230.0040.00417.11
8.0.220.0040.00417.27
8.0.210.0110.00417.24
8.0.200.0080.00717.25
8.0.190.0040.01117.22
8.0.180.0080.00817.00
8.0.170.0120.00317.20
8.0.160.0110.00417.20
8.0.150.0130.00217.22
8.0.140.0070.00717.18
8.0.130.0100.00516.88
8.0.120.0120.00317.17
8.0.110.0110.00417.16
8.0.100.0100.00517.14
8.0.90.0150.00017.19
8.0.80.0150.00017.23
8.0.70.0100.00517.03
8.0.60.0030.01217.10
8.0.50.0100.00517.11
8.0.30.0120.00217.21
8.0.20.0100.00617.20
8.0.10.0140.00317.26
7.4.330.0000.00615.55
7.4.320.0000.00716.82
7.4.300.0090.00416.77
7.4.290.0100.00216.69
7.4.280.0080.00816.68
7.4.270.0170.00016.76
7.4.260.0110.00416.79
7.4.250.0120.00416.84
7.4.240.0150.00316.83
7.4.230.0110.00716.78
7.4.220.0120.00316.86
7.4.210.0110.00416.85
7.4.200.0120.00316.89
7.4.190.0120.00316.90
7.4.180.0100.00516.75
7.4.160.0120.00316.79
7.4.150.0100.00516.80
7.4.140.0060.00916.84
7.4.130.0090.00616.84
7.4.120.0050.01016.73
7.4.110.0100.00316.86
7.4.100.0150.00016.82
7.4.90.0090.00516.76
7.4.80.0100.00516.74
7.4.70.0120.00316.74
7.4.60.0070.00716.57
7.4.50.0100.00316.73
7.4.40.0080.00716.64
7.4.30.0110.00316.70
7.4.20.0110.00216.64
7.4.10.0070.00716.57
7.4.00.0110.00316.74
7.3.20.0100.00116.16
7.3.00.0060.00516.11

preferences:
113.16 ms | 403 KiB | 5 Q