3v4l.org

run code in 300+ PHP versions simultaneously
<?php function makeItSafe($value) { htmlspecialchars($value); strip_tags($value); htmlentities($value, ENT_QUOTES); return $value; } echo makeItSafe('te~!#$%^&*()st@test.com');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MCrOL
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'makeitsafe'
          1        SEND_VAL                                                 'te%7E%21%23%24%25%5E%26%2A%28%29st%40test.com'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function makeitsafe:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MCrOL
function name:  makeItSafe
number of ops:  13
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'htmlspecialchars'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'strip_tags'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'htmlentities'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 3
         10        DO_ICALL                                                 
    7    11      > RETURN                                                   !0
    8    12*     > RETURN                                                   null

End of function makeitsafe

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.92 ms | 1397 KiB | 20 Q