3v4l.org

run code in 300+ PHP versions simultaneously
<?php $someEmoji = "([\x{1F602}-\x{1F64F}]+)xu"; $result = preg_match($someEmoji, "foo \u{1F602}", $matches, PREG_OFFSET_CAPTURE); var_dump($matches); $someEmoji = "([\u{1F602}-\u{1F64F}]+)xu"; $result = preg_match($someEmoji, "foo \u{1F602}", $matches, PREG_OFFSET_CAPTURE); var_dump($matches); // codepoints in php $someEmoji = "([\u{1F602}-\u{1F64F}]+)xu"; $result = preg_match($someEmoji, "foo \u{1F602}", $matches, PREG_OFFSET_CAPTURE); var_dump($matches);
Output for git.master_jit, git.master, rfc.property-hooks
array(1) { [0]=> array(2) { [0]=> string(4) "😂" [1]=> int(4) } } array(1) { [0]=> array(2) { [0]=> string(4) "😂" [1]=> int(4) } } array(1) { [0]=> array(2) { [0]=> string(4) "😂" [1]=> int(4) } }

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:
113.71 ms | 406 KiB | 5 Q