3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'goofe eas تان ک'.chr( bindec( '11111100' ) ).'ے عسکری ذرائع کے مطابق بدھ' .chr( bindec( '11011111' ) ); mb_set_internal_encoding( 'utf-8' ); echo mb_substr( $string , 6 )."\n"; echo mb_substr( $string , 6 , 4 )."\n"; echo mb_substr( $string , 6 , -4 )."\n"; echo mb_substr( $string , -4 )."\n"; exit(0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/Z7sLg
function name:  (null)
number of ops:  47
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'chr'
          1        INIT_FCALL                                               'bindec'
          2        SEND_VAL                                                 '11111100'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      'goofe+eas+%D8%AA%D8%A7%D9%86+%DA%A9', $2
          7        CONCAT                                           ~4      ~3, '%DB%92+%D8%B9%D8%B3%DA%A9%D8%B1%DB%8C+%D8%B0%D8%B1%D8%A7%D8%A6%D8%B9+%DA%A9%DB%92+%D9%85%D8%B7%D8%A7%D8%A8%D9%82+%D8%A8%D8%AF%DA%BE'
          8        INIT_FCALL                                               'chr'
          9        INIT_FCALL                                               'bindec'
         10        SEND_VAL                                                 '11011111'
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                         $6      
         14        CONCAT                                           ~7      ~4, $6
         15        ASSIGN                                                   !0, ~7
    5    16        INIT_FCALL_BY_NAME                                       'mb_set_internal_encoding'
         17        SEND_VAL_EX                                              'utf-8'
         18        DO_FCALL                                      0          
    7    19        INIT_FCALL                                               'mb_substr'
         20        SEND_VAR                                                 !0
         21        SEND_VAL                                                 6
         22        DO_ICALL                                         $10     
         23        CONCAT                                           ~11     $10, '%0A'
         24        ECHO                                                     ~11
    9    25        INIT_FCALL                                               'mb_substr'
         26        SEND_VAR                                                 !0
         27        SEND_VAL                                                 6
         28        SEND_VAL                                                 4
         29        DO_ICALL                                         $12     
         30        CONCAT                                           ~13     $12, '%0A'
         31        ECHO                                                     ~13
   11    32        INIT_FCALL                                               'mb_substr'
         33        SEND_VAR                                                 !0
         34        SEND_VAL                                                 6
         35        SEND_VAL                                                 -4
         36        DO_ICALL                                         $14     
         37        CONCAT                                           ~15     $14, '%0A'
         38        ECHO                                                     ~15
   13    39        INIT_FCALL                                               'mb_substr'
         40        SEND_VAR                                                 !0
         41        SEND_VAL                                                 -4
         42        DO_ICALL                                         $16     
         43        CONCAT                                           ~17     $16, '%0A'
         44        ECHO                                                     ~17
   15    45      > EXIT                                                     0
         46*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.46 ms | 1400 KiB | 19 Q