3v4l.org

run code in 300+ PHP versions simultaneously
<?php $t = "Текст"; $t = mb_convert_encoding($t, 'windows-1251', 'utf-8'); $t = htmlspecialchars($t); echo $t;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VmsZP
function name:  (null)
number of ops:  13
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%D0%A2%D0%B5%D0%BA%D1%81%D1%82'
    5     1        INIT_FCALL                                               'mb_convert_encoding'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'windows-1251'
          4        SEND_VAL                                                 'utf-8'
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !0, $2
    7     7        INIT_FCALL                                               'htmlspecialchars'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    9    11        ECHO                                                     !0
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.99 ms | 1385 KiB | 17 Q