3v4l.org

run code in 300+ PHP versions simultaneously
<?php $encoded = htmlentities("Hey I am a nefarious hacker! Look at my brackets! <script>HAHAHA</script>!"); $decoded = html_entity_decode($encoded); echo "This is how you want the text to be encoded from the comment box, when it's included as a part of html source code. \n"; echo $encoded; echo "\n\nThis is what it will look like on screen to the user.\n"; echo $decoded; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RmSQD
function name:  (null)
number of ops:  13
compiled vars:  !0 = $encoded, !1 = $decoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'htmlentities'
          1        SEND_VAL                                                 'Hey+I+am+a+nefarious+hacker%21+Look+at+my+brackets%21+%3Cscript%3EHAHAHA%3C%2Fscript%3E%21'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL                                               'html_entity_decode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    6     8        ECHO                                                     'This+is+how+you+want+the+text+to+be+encoded+from+the+comment+box%2C+when+it%27s+included+as+a+part+of+html+source+code.+%0A'
    7     9        ECHO                                                     !0
    8    10        ECHO                                                     '%0A%0AThis+is+what+it+will+look+like+on+screen+to+the+user.%0A'
    9    11        ECHO                                                     !1
   11    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.4 ms | 1394 KiB | 17 Q