3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_internal_encoding("UTF-8"); $mb_string = 'žščř'; $l=mb_strlen($mb_string); for($i=0;$i<$l;$i++) { print(mb_substr($mb_string,$i,1)."<br/>"); } $a = utf8_encode('Fön'); $b = unpack('C*', $a); var_dump($b); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 10
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 10
Branch analysis from position: 20
Branch analysis from position: 10
filename:       /in/rl2jc
function name:  (null)
number of ops:  33
compiled vars:  !0 = $mb_string, !1 = $l, !2 = $i, !3 = $a, !4 = $b
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                                                 
    4     3        ASSIGN                                                   !0, '%C5%BE%C5%A1%C4%8D%C5%99'
    6     4        INIT_FCALL                                               'mb_strlen'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $7      
          7        ASSIGN                                                   !1, $7
    8     8        ASSIGN                                                   !2, 0
          9      > JMP                                                      ->18
   10    10    >   INIT_FCALL                                               'mb_substr'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !2
         13        SEND_VAL                                                 1
         14        DO_ICALL                                         $10     
         15        CONCAT                                           ~11     $10, '%3Cbr%2F%3E'
         16        ECHO                                                     ~11
    8    17        PRE_INC                                                  !2
         18    >   IS_SMALLER                                               !2, !1
         19      > JMPNZ                                                    ~13, ->10
   13    20    >   INIT_FCALL                                               'utf8_encode'
         21        SEND_VAL                                                 'F%C3%B6n'
         22        DO_ICALL                                         $14     
         23        ASSIGN                                                   !3, $14
   14    24        INIT_FCALL                                               'unpack'
         25        SEND_VAL                                                 'C%2A'
         26        SEND_VAR                                                 !3
         27        DO_ICALL                                         $16     
         28        ASSIGN                                                   !4, $16
   15    29        INIT_FCALL                                               'var_dump'
         30        SEND_VAR                                                 !4
         31        DO_ICALL                                                 
   16    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.78 ms | 1388 KiB | 25 Q