3v4l.org

run code in 300+ PHP versions simultaneously
<?php $originaldescription = '::cck::3::/cck:: ::description:: test1 ::/description::'; $description = null; $regex_part1 = '/^::cck.*\n.*description::\n/'; $regex_part2 = '/\n.*\/description::/'; $description = preg_replace($regex_part1,null,$originaldescription); $description = preg_replace($regex_part2,null,$description); echo $description;
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: preg_replace(): Passing null to parameter #2 ($replacement) of type array|string is deprecated in /in/gV7OY on line 13 Deprecated: preg_replace(): Passing null to parameter #2 ($replacement) of type array|string is deprecated in /in/gV7OY on line 14 test1

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