3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $d = htmlspecialchars(trim('<script>alert("Работает?");</script>'), ENT_QUOTES, 'UTF-8'); echo html_entity_decode($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f19PM
function name:  (null)
number of ops:  15
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'htmlspecialchars'
          1        INIT_FCALL                                               'trim'
          2        SEND_VAL                                                 '%3Cscript%3Ealert%28%22%D0%A0%D0%B0%D0%B1%D0%BE%D1%82%D0%B0%D0%B5%D1%82%3F%22%29%3B%3C%2Fscript%3E'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        SEND_VAL                                                 3
          6        SEND_VAL                                                 'UTF-8'
          7        DO_ICALL                                         $2      
          8        ASSIGN                                           ~3      !0, $2
          9        ECHO                                                     ~3
    3    10        INIT_FCALL                                               'html_entity_decode'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $4      
         13        ECHO                                                     $4
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.71 ms | 1394 KiB | 19 Q