3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'abcΓ€ΓΌΓΆπŸ˜œπŸŽπŸŽΆΜˆπŸ±β€ΜˆπŸ‘“ΜˆπŸ˜˜'; $iterator = IntlBreakIterator::createCharacterInstance(null); $iterator->setText($s); foreach ($iterator->getPartsIterator() as $k => $v) { var_dump($k, $v); echo "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
int(0) string(1) "a" int(1) string(1) "b" int(2) string(1) "c" int(3) string(2) "Γ€" int(4) string(2) "ΓΌ" int(5) string(2) "ΓΆ" int(6) string(4) "😜" int(7) string(4) "🎁" int(8) string(6) "🎢̈" int(9) string(9) "πŸ±β€Μˆ" int(10) string(6) "πŸ‘“Μˆ" int(11) string(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:
98.93 ms | 1470 KiB | 4 Q