3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '<p>Параграф.</p><!-- Комментарий --> <a href="#fragment">Еще текст</a>'; $str = htmlentities($text); echo $str.'<br>'; echo html_entity_decode($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8tKVX
function name:  (null)
number of ops:  12
compiled vars:  !0 = $text, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp%3E%D0%9F%D0%B0%D1%80%D0%B0%D0%B3%D1%80%D0%B0%D1%84.%3C%2Fp%3E%3C%21--+%D0%9A%D0%BE%D0%BC%D0%BC%D0%B5%D0%BD%D1%82%D0%B0%D1%80%D0%B8%D0%B9+--%3E+%3Ca+href%3D%22%23fragment%22%3E%D0%95%D1%89%D0%B5+%D1%82%D0%B5%D0%BA%D1%81%D1%82%3C%2Fa%3E'
    3     1        INIT_FCALL                                               'htmlentities'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    4     5        CONCAT                                           ~5      !1, '%3Cbr%3E'
          6        ECHO                                                     ~5
    5     7        INIT_FCALL                                               'html_entity_decode'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $6      
         10        ECHO                                                     $6
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.11 ms | 1394 KiB | 17 Q