3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '[img width=600 height=300]url[/img]'; // here-------------------v // v echo preg_replace("/\[img width=(.*) height=(.*)\](.*)\[\/img\]/Usi", "<img src=\"\\3\" class=\"image\" style=\"width:\\1; height:\\2\" />", $text); echo "\n---\n"; echo preg_replace("/\[img width=(.*) height=(.*)\](.*)\[\/img\]/Usi", "<img src=\"\\3\" class=\"image\" style=\"width:\\1; height:\\2\" />", $text); echo "\n---\n"; echo preg_replace("/\[img width=(.*) height=(.*)\](.*)\[\/img\]/Usi", "<img src=\"$3\" class=\"image\" style=\"width:$1; height:$2\" />", $text);
Output for git.master, git.master_jit, rfc.property-hooks
[img width=600 height=300]url[/img] --- <img src="url" class="image" style="width:600; height:300" /> --- <img src="url" class="image" style="width:600; height:300" />

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:
43.18 ms | 1519 KiB | 4 Q