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 what's sent in the html source... so the browser doesn't actually recognize it as a script.\n"; echo $encoded; echo "\nThis is what it looks 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/Velm2
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+what%27s+sent+in+the+html+source...+so+the+browser+doesn%27t+actually+recognize+it+as+a+script.%0A'
    7     9        ECHO                                                     !0
    8    10        ECHO                                                     '%0AThis+is+what+it+looks+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:
152.55 ms | 1394 KiB | 17 Q