3v4l.org

run code in 300+ PHP versions simultaneously
<?php //To SANITIZE Sql query value use function mysqlCleaner($data) { $data= mysql_real_escape_string($data); $data= stripslashes($data); return $data; //or in one line code //return(stripslashes(mysql_real_escape_string($data))); } //example: $insert="delete from vbtube_tubes WHERE tubeid =1"; $insert= mysqlCleaner($insert); mysql_query($insert);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DFfFI
function name:  (null)
number of ops:  9
compiled vars:  !0 = $insert
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, 'delete+from+vbtube_tubes+WHERE+tubeid+%3D1'
   15     1        INIT_FCALL                                               'mysqlcleaner'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0  $2      
          4        ASSIGN                                                   !0, $2
   16     5        INIT_FCALL_BY_NAME                                       'mysql_query'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function mysqlcleaner:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DFfFI
function name:  mysqlCleaner
number of ops:  11
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4        ASSIGN                                                   !0, $1
    7     5        INIT_FCALL                                               'stripslashes'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
    8     9      > RETURN                                                   !0
   11    10*     > RETURN                                                   null

End of function mysqlcleaner

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
279.25 ms | 1397 KiB | 17 Q