3v4l.org

run code in 300+ 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]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 22
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 22
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/CS5Tp
function name:  (null)
number of ops:  24
compiled vars:  !0 = $it, !1 = $block, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'IntlBreakIterator', 'createLineInstance'
          1        SEND_VAL_EX                                              'ja-JP'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_METHOD_CALL                                         !0, 'setText'
          5        SEND_VAL_EX                                              '%EF%BD%B6%EF%BE%9E%EF%BD%B7%EF%BE%9E'
          6        DO_FCALL                                      0          
    6     7        INIT_METHOD_CALL                                         !0, 'getPartsIterator'
          8        DO_FCALL                                      0  $6      
          9        FETCH_CLASS_NAME                                 ~7      $6
         10        ECHO                                                     ~7
         11        ECHO                                                     '%0A'
    7    12        INIT_METHOD_CALL                                         !0, 'getPartsIterator'
         13        DO_FCALL                                      0  $8      
         14      > FE_RESET_R                                       $9      $8, ->22
         15    > > FE_FETCH_R                                       ~10     $9, !1, ->22
         16    >   ASSIGN                                                   !2, ~10
    8    17        INIT_FCALL                                               'var_dump'
         18        INIT_ARRAY                                       ~12     !1, !2
         19        SEND_VAL                                                 ~12
         20        DO_ICALL                                                 
    7    21      > JMP                                                      ->15
         22    >   FE_FREE                                                  $9
    9    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.01 ms | 1005 KiB | 14 Q