3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tmp = "2_【23区・千葉】"; $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/dI1mn
function name:  (null)
number of ops:  14
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'
    4     1        INIT_FCALL                                               'mb_strimwidth'
          2        SEND_VAR                                                 !0
          3        STRLEN                                           ~2      !0
          4        MUL                                              ~3      ~2, -1
          5        ADD                                              ~4      ~3, 3
          6        SEND_VAL                                                 ~4
          7        STRLEN                                           ~5      !0
          8        SUB                                              ~6      ~5, 3
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !0, $7
    6    12        ECHO                                                     !0
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.85 ms | 1394 KiB | 15 Q