3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "&lt; this is a test ยป"; $str = htmlentities($str); echo $str; echo "\n"; echo htmlspecialchars_decode($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lN6kO
function name:  (null)
number of ops:  12
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%26lt%3B+this+is+a+test+%C2%BB'
    4     1        INIT_FCALL                                               'htmlentities'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    5     5        ECHO                                                     !0
    6     6        ECHO                                                     '%0A'
    7     7        INIT_FCALL                                               'htmlspecialchars_decode'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        ECHO                                                     $4
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.62 ms | 1394 KiB | 17 Q