3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iteratorx = IntlCodePointBreakIterator::createCodePointInstance(); $iteratorx->setText("abc"); $iterator = $iteratorx->getPartsIterator(); $iterator->rewind(); $iterator->next(); $iteratorx->previous(); // previous works $iterator->next(); $iterator->next(); echo $iterator->current() . "\n"; // c... all fine $iterator->next(); // no more code points, so it's invalid var_dump($iterator->valid()); // false var_dump($iterator->current()); // prints weird stuff... whatever... $iteratorx->previous(); // cannot go back var_dump($iterator->valid()); // broken var_dump($iterator->current()); // broken
Output for git.master, git.master_jit, rfc.property-hooks
c bool(false) UNKNOWN:0 bool(false) UNKNOWN:0

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