3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'سلام جهان'; // the number of character: 9 character [س|ل|ا|م| |ج|ه|ا|ن] echo substr($str, 0, 9);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4IRCm
function name:  (null)
number of ops:  8
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%D8%B3%D9%84%D8%A7%D9%85+%D8%AC%D9%87%D8%A7%D9%86'
    3     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 9
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
231.75 ms | 996 KiB | 14 Q