3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "This is some text <p>##IDOBJECT=784##</p> and another some text <p>##IDOBJECT=1509##</p> <p>##LATESTARTICLESHOME=321##</p> <p align=\"center\">##IDOBJECT=321##</p>"; echo preg_replace_callback('/##(.*?)##/', function($match){ return strtolower('[object ' . $match[1] . ']'); }, $str);
Output for git.master_jit, git.master, rfc.property-hooks
This is some text <p>[object idobject=784]</p> and another some text <p>[object idobject=1509]</p> <p>[object latestarticleshome=321]</p> <p align="center">[object idobject=321]</p>

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:
34.29 ms | 405 KiB | 5 Q