3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = '漢字仮名交じり文'; echo "strlen: " . strlen($s) . "\n"; echo "mb_strlen: " . mb_strlen ($s, 'utf-8');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4MtRX
function name:  (null)
number of ops:  12
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        CONCAT                                           ~4      ~3, '%0A'
          4        ECHO                                                     ~4
    6     5        INIT_FCALL                                               'mb_strlen'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 'utf-8'
          8        DO_ICALL                                         $5      
          9        CONCAT                                           ~6      'mb_strlen%3A+', $5
         10        ECHO                                                     ~6
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.67 ms | 1394 KiB | 15 Q