3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = "2_【23区・千葉】"; echo strlen( $tmp ) *(-1) + 3 ; $tmp = mb_strimwidth($tmp , strlen( $tmp ) *(-1) + 3 , strlen($tmp ) - 3 ); echo $tmp ;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5gAZd
function name:  (null)
number of ops:  18
compiled vars:  !0 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2_%E3%80%9023%E5%8C%BA%E3%83%BB%E5%8D%83%E8%91%89%E3%80%91'
    3     1        STRLEN                                           ~2      !0
          2        MUL                                              ~3      ~2, -1
          3        ADD                                              ~4      ~3, 3
          4        ECHO                                                     ~4
    4     5        INIT_FCALL                                               'mb_strimwidth'
          6        SEND_VAR                                                 !0
          7        STRLEN                                           ~5      !0
          8        MUL                                              ~6      ~5, -1
          9        ADD                                              ~7      ~6, 3
         10        SEND_VAL                                                 ~7
         11        STRLEN                                           ~8      !0
         12        SUB                                              ~9      ~8, 3
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !0, $10
    6    16        ECHO                                                     !0
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.17 ms | 1386 KiB | 15 Q