3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "<p>like it &lt;/p>"; $str = htmlspecialchars($str); echo $str. "<br>"; $str = htmlspecialchars_decode($str); echo $str. "<br>"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EMWPt
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp%3Elike+it+%26lt%3B%2Fp%3E'
    4     1        INIT_FCALL                                               'htmlspecialchars'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    6     5        CONCAT                                           ~4      !0, '%3Cbr%3E'
          6        ECHO                                                     ~4
    8     7        INIT_FCALL                                               'htmlspecialchars_decode'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !0, $5
   10    11        CONCAT                                           ~7      !0, '%3Cbr%3E'
         12        ECHO                                                     ~7
   12    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.36 ms | 1394 KiB | 17 Q