3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'goofe eas تان ک'.chr( bindec( '11111100' ) ).'ے عسکری ذرائع کے مطابق بدھ' .chr( bindec( '11011111' ) ); echo utf8_substr( $string , 6 )."\n"; echo utf8_substr( $string , 6 , 4 )."\n"; echo utf8_substr( $string , 6 , -4 )."\n"; echo utf8_substr( $string , -4 )."\n"; exit(0);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/aB3YT
function name:  (null)
number of ops:  44
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                                       'utf8_substr'
         17        SEND_VAR_EX                                              !0
         18        SEND_VAL_EX                                              6
         19        DO_FCALL                                      0  $9      
         20        CONCAT                                           ~10     $9, '%0A'
         21        ECHO                                                     ~10
    7    22        INIT_FCALL_BY_NAME                                       'utf8_substr'
         23        SEND_VAR_EX                                              !0
         24        SEND_VAL_EX                                              6
         25        SEND_VAL_EX                                              4
         26        DO_FCALL                                      0  $11     
         27        CONCAT                                           ~12     $11, '%0A'
         28        ECHO                                                     ~12
    9    29        INIT_FCALL_BY_NAME                                       'utf8_substr'
         30        SEND_VAR_EX                                              !0
         31        SEND_VAL_EX                                              6
         32        SEND_VAL_EX                                              -4
         33        DO_FCALL                                      0  $13     
         34        CONCAT                                           ~14     $13, '%0A'
         35        ECHO                                                     ~14
   11    36        INIT_FCALL_BY_NAME                                       'utf8_substr'
         37        SEND_VAR_EX                                              !0
         38        SEND_VAL_EX                                              -4
         39        DO_FCALL                                      0  $15     
         40        CONCAT                                           ~16     $15, '%0A'
         41        ECHO                                                     ~16
   13    42      > EXIT                                                     0
         43*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.14 ms | 1400 KiB | 17 Q