3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MySQL{ public $debugMode = 0; private $sqlHandle; private $hostname; private $username; private $password; private $dbName; private $queryHandle; function __construct() { } } function escapeContent($value) { $value = get_magic_quotes_gpc()?stripslashes($value):$value; return mysql_real_escape_string($value, $this->sqlHandle); } array_map(array('MySQL', 'escapeContent'), array(1,2,3)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/27EPV
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_FCALL                                               'array_map'
          1        SEND_VAL                                                 <array>
          2        SEND_VAL                                                 <array>
          3        DO_ICALL                                                 
   26     4      > RETURN                                                   1

Function escapecontent:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/27EPV
function name:  escapeContent
number of ops:  20
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
   20     1        INIT_FCALL_BY_NAME                                       'get_magic_quotes_gpc'
          2        DO_FCALL                                      0  $1      
          3      > JMPZ                                                     $1, ->9
          4    >   INIT_FCALL                                               'stripslashes'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        QM_ASSIGN                                        ~3      $2
          8      > JMP                                                      ->10
          9    >   QM_ASSIGN                                        ~3      !0
         10    >   ASSIGN                                                   !0, ~3
   21    11        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
         12        SEND_VAR_EX                                              !0
         13        CHECK_FUNC_ARG                                           
         14        FETCH_THIS                                       $5      
         15        FETCH_OBJ_FUNC_ARG                               $6      $5, 'sqlHandle'
         16        SEND_FUNC_ARG                                            $6
         17        DO_FCALL                                      0  $7      
         18      > RETURN                                                   $7
   23    19*     > RETURN                                                   null

End of function escapecontent

Class MySQL:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/27EPV
function name:  __construct
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                   null

End of function __construct

End of class MySQL.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.94 ms | 1396 KiB | 20 Q