3v4l.org

run code in 300+ PHP versions simultaneously
<?php $invalid = "a\x80b"; $iter = IntlBreakIterator::createCodePointInstance(); $iter->setText($invalid); while ($iter->next() !== IntlBreakIterator::DONE) { var_dump( $iter->getLastCodePoint(), $iter->getErrorCode(), $iter->getErrorMessage() ); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 8
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 8
Branch analysis from position: 24
Branch analysis from position: 8
filename:       /in/dR8WU
function name:  (null)
number of ops:  25
compiled vars:  !0 = $invalid, !1 = $iter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'a%80b'
    4     1        INIT_STATIC_METHOD_CALL                                  'IntlBreakIterator', 'createCodePointInstance'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !1, $3
    5     4        INIT_METHOD_CALL                                         !1, 'setText'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
    7     7      > JMP                                                      ->19
    8     8    >   INIT_FCALL                                               'var_dump'
    9     9        INIT_METHOD_CALL                                         !1, 'getLastCodePoint'
         10        DO_FCALL                                      0  $6      
         11        SEND_VAR                                                 $6
   10    12        INIT_METHOD_CALL                                         !1, 'getErrorCode'
         13        DO_FCALL                                      0  $7      
         14        SEND_VAR                                                 $7
   11    15        INIT_METHOD_CALL                                         !1, 'getErrorMessage'
         16        DO_FCALL                                      0  $8      
         17        SEND_VAR                                                 $8
    8    18        DO_ICALL                                                 
    7    19    >   INIT_METHOD_CALL                                         !1, 'next'
         20        DO_FCALL                                      0  $10     
         21        FETCH_CLASS_CONSTANT                             ~11     'IntlBreakIterator', 'DONE'
         22        IS_NOT_IDENTICAL                                         $10, ~11
         23      > JMPNZ                                                    ~12, ->8
   13    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.17 ms | 998 KiB | 14 Q