3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(mb_strwidth("’", "UTF-8")); var_dump(mb_strwidth("(", "UTF-8")); var_dump(mb_strwidth("ー", "UTF-8")); var_dump(mb_strwidth("=", "UTF-8")); var_dump(mb_strwidth("^", "UTF-8")); var_dump(mb_strwidth("~", "UTF-8")); var_dump(mb_strwidth("¥", "UTF-8")); var_dump(mb_strwidth("①", "UTF-8"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/skElY
function name:  (null)
number of ops:  57
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'mb_strwidth'
          2        SEND_VAL                                                 '%E2%80%99'
          3        SEND_VAL                                                 'UTF-8'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
    3     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'mb_strwidth'
          9        SEND_VAL                                                 '%EF%BC%88'
         10        SEND_VAL                                                 'UTF-8'
         11        DO_ICALL                                         $2      
         12        SEND_VAR                                                 $2
         13        DO_ICALL                                                 
    4    14        INIT_FCALL                                               'var_dump'
         15        INIT_FCALL                                               'mb_strwidth'
         16        SEND_VAL                                                 '%E3%83%BC'
         17        SEND_VAL                                                 'UTF-8'
         18        DO_ICALL                                         $4      
         19        SEND_VAR                                                 $4
         20        DO_ICALL                                                 
    7    21        INIT_FCALL                                               'var_dump'
         22        INIT_FCALL                                               'mb_strwidth'
         23        SEND_VAL                                                 '%EF%BC%9D'
         24        SEND_VAL                                                 'UTF-8'
         25        DO_ICALL                                         $6      
         26        SEND_VAR                                                 $6
         27        DO_ICALL                                                 
    8    28        INIT_FCALL                                               'var_dump'
         29        INIT_FCALL                                               'mb_strwidth'
         30        SEND_VAL                                                 '%EF%BC%BE'
         31        SEND_VAL                                                 'UTF-8'
         32        DO_ICALL                                         $8      
         33        SEND_VAR                                                 $8
         34        DO_ICALL                                                 
    9    35        INIT_FCALL                                               'var_dump'
         36        INIT_FCALL                                               'mb_strwidth'
         37        SEND_VAL                                                 '%EF%BD%9E'
         38        SEND_VAL                                                 'UTF-8'
         39        DO_ICALL                                         $10     
         40        SEND_VAR                                                 $10
         41        DO_ICALL                                                 
   10    42        INIT_FCALL                                               'var_dump'
         43        INIT_FCALL                                               'mb_strwidth'
         44        SEND_VAL                                                 '%EF%BF%A5'
         45        SEND_VAL                                                 'UTF-8'
         46        DO_ICALL                                         $12     
         47        SEND_VAR                                                 $12
         48        DO_ICALL                                                 
   12    49        INIT_FCALL                                               'var_dump'
         50        INIT_FCALL                                               'mb_strwidth'
         51        SEND_VAL                                                 '%E2%91%A0'
         52        SEND_VAL                                                 'UTF-8'
         53        DO_ICALL                                         $14     
         54        SEND_VAR                                                 $14
         55        DO_ICALL                                                 
         56      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.84 ms | 1400 KiB | 17 Q