3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isZenkaku($string){ return $string === mb_convert_kana($string, 'ASKH', 'UTF-8'); } function isHankaku($string){ return strlen($string) === mb_strlen($string, 'UTF-8'); } var_dump(isZenkaku('\''));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qudUl
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'iszenkaku'
          2        SEND_VAL                                                 '%27'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Function iszenkaku:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qudUl
function name:  isZenkaku
number of ops:  9
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'mb_convert_kana'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'ASKH'
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                         $1      
          6        IS_IDENTICAL                                     ~2      !0, $1
          7      > RETURN                                                   ~2
    5     8*     > RETURN                                                   null

End of function iszenkaku

Function ishankaku:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qudUl
function name:  isHankaku
number of ops:  9
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        STRLEN                                           ~1      !0
          2        INIT_FCALL                                               'mb_strlen'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'UTF-8'
          5        DO_ICALL                                         $2      
          6        IS_IDENTICAL                                     ~3      $2, ~1
          7      > RETURN                                                   ~3
    8     8*     > RETURN                                                   null

End of function ishankaku

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
123.49 ms | 1016 KiB | 17 Q