3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bi = IntlBreakIterator::createCodePointInstance(); $bi->setText("A\xED\xA0\xBDa"); foreach ($bi->getPartsIterator() as $cp) { var_dump($bi->getErrorMessage(), bin2hex($cp)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 20
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 20
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/73D52
function name:  (null)
number of ops:  22
compiled vars:  !0 = $bi, !1 = $cp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_STATIC_METHOD_CALL                                  'IntlBreakIterator', 'createCodePointInstance'
          1        DO_FCALL                                      0  $2      
          2        ASSIGN                                                   !0, $2
    4     3        INIT_METHOD_CALL                                         !0, 'setText'
          4        SEND_VAL_EX                                              'A%ED%A0%BDa'
          5        DO_FCALL                                      0          
    5     6        INIT_METHOD_CALL                                         !0, 'getPartsIterator'
          7        DO_FCALL                                      0  $5      
          8      > FE_RESET_R                                       $6      $5, ->20
          9    > > FE_FETCH_R                                               $6, !1, ->20
    6    10    >   INIT_FCALL                                               'var_dump'
         11        INIT_METHOD_CALL                                         !0, 'getErrorMessage'
         12        DO_FCALL                                      0  $7      
         13        SEND_VAR                                                 $7
         14        INIT_FCALL                                               'bin2hex'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                                 
    5    19      > JMP                                                      ->9
         20    >   FE_FREE                                                  $6
    7    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.98 ms | 1001 KiB | 15 Q