3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding("UTF-8"); /* $s="ó12345678\r\n1234\n;"; //$s=utf8_encode("ó12345678\r\n1234\n;") // "ó12345678rn1234n;" // 012345678901234567890 print_r(mb_detect_encoding($s)."\n"); print_r(mb_strlen($s)."\n"); print_r(mb_strpos($s,';')."\n"); */ $linePart="abszolúte A_ADV ADV,;"; for ($i=0;$i<strlen($linePart);$i++) { print $i . "\t" . dechex(ord($linePart[$i])) . "\t" . $linePart[$i] . PHP_EOL; } print 'orig linePart length: '; var_dump(mb_strlen($linePart)); print 'orig linePart: '; var_dump($linePart); print '; pos: '; var_dump(mb_strpos($linePart, ';'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 6
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 6
Branch analysis from position: 24
Branch analysis from position: 6
filename:       /in/rPPAU
function name:  (null)
number of ops:  44
compiled vars:  !0 = $linePart, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'mb_internal_encoding'
          1        SEND_VAL                                                 'UTF-8'
          2        DO_ICALL                                                 
   12     3        ASSIGN                                                   !0, 'abszol%C3%BAte%09A_ADV%09ADV%2C%3B'
   13     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->21
   15     6    >   CONCAT                                           ~5      !1, '%09'
          7        INIT_FCALL                                               'dechex'
          8        INIT_FCALL                                               'ord'
          9        FETCH_DIM_R                                      ~6      !0, !1
         10        SEND_VAL                                                 ~6
         11        DO_ICALL                                         $7      
         12        SEND_VAR                                                 $7
         13        DO_ICALL                                         $8      
         14        CONCAT                                           ~9      ~5, $8
         15        CONCAT                                           ~10     ~9, '%09'
         16        FETCH_DIM_R                                      ~11     !0, !1
         17        CONCAT                                           ~12     ~10, ~11
         18        CONCAT                                           ~13     ~12, '%0A'
         19        ECHO                                                     ~13
   13    20        PRE_INC                                                  !1
         21    >   STRLEN                                           ~15     !0
         22        IS_SMALLER                                               !1, ~15
         23      > JMPNZ                                                    ~16, ->6
   18    24    >   ECHO                                                     'orig+linePart+length%3A+'
         25        INIT_FCALL                                               'var_dump'
         26        INIT_FCALL                                               'mb_strlen'
         27        SEND_VAR                                                 !0
         28        DO_ICALL                                         $17     
         29        SEND_VAR                                                 $17
         30        DO_ICALL                                                 
   19    31        ECHO                                                     'orig+linePart%3A+'
         32        INIT_FCALL                                               'var_dump'
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                                 
   20    35        ECHO                                                     '%3B+pos%3A+'
         36        INIT_FCALL                                               'var_dump'
         37        INIT_FCALL                                               'mb_strpos'
         38        SEND_VAR                                                 !0
         39        SEND_VAL                                                 '%3B'
         40        DO_ICALL                                         $20     
         41        SEND_VAR                                                 $20
         42        DO_ICALL                                                 
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.9 ms | 1400 KiB | 25 Q