3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = ' [My Test URL 1|https://www.mywebsite.com/test?param=1] [My Test URL 2|https://www.mywebsite.com/test?param=2] [My Test URL 3|https://www.mywebsite.com/test?param=3] [My Test URL 4|https://www.mywebsite.com/test?param=4] '; echo preg_replace('/\[(.*?)[|](.*?)\]/', '<a href="$2">$1</a>', $html);
Output for git.master, git.master_jit, rfc.property-hooks
<a href="https://www.mywebsite.com/test?param=1">My Test URL 1</a> <a href="https://www.mywebsite.com/test?param=2">My Test URL 2</a> <a href="https://www.mywebsite.com/test?param=3">My Test URL 3</a> <a href="https://www.mywebsite.com/test?param=4">My Test URL 4</a>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
185.9 ms | 406 KiB | 5 Q