3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'äëïöü'; $defaultEncoding = mb_internal_encoding(); $len = strlen($string); $mbLenDefault = mb_strlen($string); $mbLen = mb_strlen($string, 'UTF-8'); echo 'Default Encoding = ' . $defaultEncoding . "\n" . 'strlen = ' . $len . "\n" . 'mb_strlen (' . $defaultEncoding . ') = ' . $mbLenDefault . "\n" . 'mb_strlen (UTF-8) = ' . $mbLen ;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8eTeI
function name:  (null)
number of ops:  29
compiled vars:  !0 = $string, !1 = $defaultEncoding, !2 = $len, !3 = $mbLenDefault, !4 = $mbLen
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C3%A4%C3%AB%C3%AF%C3%B6%C3%BC'
    5     1        INIT_FCALL                                               'mb_internal_encoding'
          2        DO_ICALL                                         $6      
          3        ASSIGN                                                   !1, $6
    7     4        STRLEN                                           ~8      !0
          5        ASSIGN                                                   !2, ~8
    8     6        INIT_FCALL                                               'mb_strlen'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $10     
          9        ASSIGN                                                   !3, $10
   10    10        INIT_FCALL                                               'mb_strlen'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 'UTF-8'
         13        DO_ICALL                                         $12     
         14        ASSIGN                                                   !4, $12
   12    15        CONCAT                                           ~14     'Default+Encoding+%3D+', !1
         16        CONCAT                                           ~15     ~14, '%0A'
   13    17        CONCAT                                           ~16     ~15, 'strlen+%3D+'
         18        CONCAT                                           ~17     ~16, !2
         19        CONCAT                                           ~18     ~17, '%0A'
   14    20        CONCAT                                           ~19     ~18, 'mb_strlen+%28'
         21        CONCAT                                           ~20     ~19, !1
         22        CONCAT                                           ~21     ~20, '%29+%3D+'
         23        CONCAT                                           ~22     ~21, !3
         24        CONCAT                                           ~23     ~22, '%0A'
   15    25        CONCAT                                           ~24     ~23, 'mb_strlen+%28UTF-8%29+%3D+'
         26        CONCAT                                           ~25     ~24, !4
         27        ECHO                                                     ~25
   16    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.64 ms | 1387 KiB | 17 Q