3v4l.org

run code in 300+ PHP versions simultaneously
<?php // the Arabic (Hello) string below is: 59 bytes and 32 characters $utf8 = "السلام علیکم ورحمة الله وبرکاته!"; var_export( strlen($utf8) ); // 59 echo "<br>"; var_export( mb_strlen($utf8, 'utf8') ); // 32
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TJ68c
function name:  (null)
number of ops:  14
compiled vars:  !0 = $utf8
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%D8%A7%D9%84%D8%B3%D9%84%D8%A7%D9%85+%D8%B9%D9%84%DB%8C%DA%A9%D9%85+%D9%88%D8%B1%D8%AD%D9%85%D8%A9+%D8%A7%D9%84%D9%84%D9%87+%D9%88%D8%A8%D8%B1%DA%A9%D8%A7%D8%AA%D9%87%21'
    6     1        INIT_FCALL                                               'var_export'
          2        STRLEN                                           ~2      !0
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
    7     5        ECHO                                                     '%3Cbr%3E'
    8     6        INIT_FCALL                                               'var_export'
          7        INIT_FCALL                                               'mb_strlen'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'utf8'
         10        DO_ICALL                                         $4      
         11        SEND_VAR                                                 $4
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.16 ms | 1394 KiB | 17 Q