3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '<a href="http://test.com">test</a><br/>test'; $encode = nl2br(htmlentities($string, ENT_QUOTES, 'UTF-8')); echo html_entity_decode($encode, ENT_QUOTES, 'UTF-8');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qS5au
function name:  (null)
number of ops:  17
compiled vars:  !0 = $string, !1 = $encode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Ca+href%3D%22http%3A%2F%2Ftest.com%22%3Etest%3C%2Fa%3E%3Cbr%2F%3Etest'
    4     1        INIT_FCALL                                               'nl2br'
          2        INIT_FCALL                                               'htmlentities'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 3
          5        SEND_VAL                                                 'UTF-8'
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        DO_ICALL                                         $4      
          9        ASSIGN                                                   !1, $4
    5    10        INIT_FCALL                                               'html_entity_decode'
         11        SEND_VAR                                                 !1
         12        SEND_VAL                                                 3
         13        SEND_VAL                                                 'UTF-8'
         14        DO_ICALL                                         $6      
         15        ECHO                                                     $6
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
128.74 ms | 1399 KiB | 19 Q