3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '漢字仮名交じり文'; echo 'strlen: ' . strlen($s); echo 'mb_strlen: ' . mb_strlen ($s);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LgrBc
function name:  (null)
number of ops:  10
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%E6%BC%A2%E5%AD%97%E4%BB%AE%E5%90%8D%E4%BA%A4%E3%81%98%E3%82%8A%E6%96%87'
    5     1        STRLEN                                           ~2      !0
          2        CONCAT                                           ~3      'strlen%3A+', ~2
          3        ECHO                                                     ~3
    6     4        INIT_FCALL                                               'mb_strlen'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        CONCAT                                           ~5      'mb_strlen%3A+', $4
          8        ECHO                                                     ~5
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.94 ms | 1398 KiB | 15 Q