3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "Lorem ABC ipsum ABC bla MNO bla ipsum ABC asfg 123 hello ABC dd ABC XYZ hello ABC"; echo preg_replace_callback('~(?<=MNO).*?(?=XYZ)~s', function($m) { return str_replace('ABC', 'XXX', $m[0]); }, $s); echo "\n"; echo preg_replace_callback('~(MNO)(.*?)(XYZ)~s', function($m) { return $m[1] . str_replace('ABC', 'XXX', $m[2]) . $m[3]; }, $s);
Output for git.master, git.master_jit, rfc.property-hooks
Lorem ABC ipsum ABC bla MNO bla ipsum XXX asfg 123 hello XXX dd XXX XYZ hello ABC Lorem ABC ipsum ABC bla MNO bla ipsum XXX asfg 123 hello XXX dd XXX XYZ hello ABC

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