3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '[audio mp3="https://abcd.com/wp-content/uploads/sites/2/2020/03/classical-demo.mp3"][/audio]'; $b = str_replace("[","<",$a); $b = str_replace("]",">",$b); $b = str_replace("audio","a",$b); // you need to replace mp3=, not mp3, as you have 2 of it $b = str_replace("mp3=","href=",$b); // optional $b = str_replace("><",">link text<",$b); echo $b;
Output for git.master, git.master_jit, rfc.property-hooks
<a href="https://abcd.com/wp-content/uploads/sites/2/2020/03/classical-demo.mp3">link text</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:
25.8 ms | 405 KiB | 5 Q