3v4l.org

run code in 300+ PHP versions simultaneously
<?php $regex = '/X(*MARK:A)Y|X(*MARK:B)Z/'; preg_match($regex, "XY", $matches); echo $matches['MARK'], "\n"; // A preg_match($regex, "XZ", $matches); echo $matches['MARK'], "\n"; // B preg_match($regex, "XP", $matches); echo $matches['MARK'], "\n"; // Should also be B, instead: Notice: Undefined index: MARK
Output for git.master, git.master_jit, rfc.property-hooks
A B Warning: Undefined array key "MARK" in /in/tMkan on line 12

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