3v4l.org

run code in 300+ PHP versions simultaneously
<?php $description = '<img src="http://web1.cz/obrazek.jpg">'; $description = preg_replace_callback('#<img(.*)src="(.*)"(.*)>#i', function($matches) { return '<img'.$matches[1].'src="img/'.base64_encode($matches[2]).'"'.$matches[3].'>'; }, $description); echo $description;
Output for git.master, git.master_jit, rfc.property-hooks
<img src="img/aHR0cDovL3dlYjEuY3ovb2JyYXplay5qcGc=">

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:
46.53 ms | 401 KiB | 8 Q