3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strlen('🏴󠁧󠁢󠁥󠁮󠁧󠁿'); //28 - oh no echo mb_strlen('🏴󠁧󠁢󠁥󠁮󠁧󠁿'); // - closer, but no echo grapheme_strlen('🏴󠁧󠁢󠁥󠁮󠁧󠁿'); //1 - Bingo ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QXCFu
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ECHO                                                     28
    3     1        INIT_FCALL                                               'mb_strlen'
          2        SEND_VAL                                                 '%F0%9F%8F%B4%F3%A0%81%A7%F3%A0%81%A2%F3%A0%81%A5%F3%A0%81%AE%F3%A0%81%A7%F3%A0%81%BF'
          3        DO_ICALL                                         $0      
          4        ECHO                                                     $0
    4     5        INIT_FCALL_BY_NAME                                       'grapheme_strlen'
          6        SEND_VAL_EX                                              '%F0%9F%8F%B4%F3%A0%81%A7%F3%A0%81%A2%F3%A0%81%A5%F3%A0%81%AE%F3%A0%81%A7%F3%A0%81%BF'
          7        DO_FCALL                                      0  $1      
          8        ECHO                                                     $1
    5     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.45 ms | 1449 KiB | 14 Q