3v4l.org

run code in 300+ PHP versions simultaneously
<?php function makeItSafe($value) { htmlentities($value, ENT_QUOTES); htmlspecialchars($value); strip_tags($value); 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/qt6tU
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     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/qt6tU
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      
    5     1        INIT_FCALL                                               'htmlentities'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 3
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'htmlspecialchars'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    7     8        INIT_FCALL                                               'strip_tags'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    8    11      > RETURN                                                   !0
    9    12*     > RETURN                                                   null

End of function makeitsafe

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.79 ms | 1397 KiB | 20 Q