3v4l.org

run code in 500+ PHP versions simultaneously
<?php $it = IntlBreakIterator::createLineInstance('ja-JP'); $it->setText('ガギ'); echo $it->getPartsIterator()::class, PHP_EOL; foreach ($it->getPartsIterator() as $i => $block) { var_dump([$i => $block]); }
Output for 8.5.1 - 8.5.3
Fatal error: Uncaught Error: Class "IntlBreakIterator" not found in /in/CS5Tp:3 Stack trace: #0 {main} thrown in /in/CS5Tp on line 3
Process exited with code 255.
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0
IntlPartsIterator array(1) { [0]=> string(6) "ガ" } array(1) { [1]=> string(6) "ギ" }

preferences:
85.72 ms | 1118 KiB | 4 Q