3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TableHelper { // Instance Variables: /** * @var \PDO */ private $pdo; // Constructor: public function __construct( $dsn, $userName, $password ) { $this->pdo = new \PDO($dsn, $userName, $password); } // Methods: /** * Drop a table. * @param string $tableName * @return boolean */ public function (╯°□°)╯︵┻━┻( $tableName ) { $sql = "DROP TABLE :tableName"; $statement = $this->pdo->prepare($sql); $parameters = array( ":tableName" => $tableName ); return $statement->execute($parameters); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3an55
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E > > RETURN                                                   1

Class TableHelper:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3an55
function name:  __construct
number of ops:  11
compiled vars:  !0 = $dsn, !1 = $userName, !2 = $password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   13     3        NEW                                              $4      'PDO'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !1
          6        SEND_VAR_EX                                              !2
          7        DO_FCALL                                      0          
          8        ASSIGN_OBJ                                               'pdo'
          9        OP_DATA                                                  $4
   14    10      > RETURN                                                   null

End of function __construct

Function %EF%BC%88%E2%95%AF%C2%B0%E2%96%A1%C2%B0%EF%BC%89%E2%95%AF%EF%B8%B5%E2%94%BB%E2%94%81%E2%94%BB:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3an55
function name:  (╯°□°)╯︵┻━┻
number of ops:  14
compiled vars:  !0 = $tableName, !1 = $sql, !2 = $statement, !3 = $parameters
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   RECV                                             !0      
   24     1        ASSIGN                                                   !1, 'DROP+TABLE+%3AtableName'
   25     2        FETCH_OBJ_R                                      ~5      'pdo'
          3        INIT_METHOD_CALL                                         ~5, 'prepare'
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0  $6      
          6        ASSIGN                                                   !2, $6
   26     7        INIT_ARRAY                                       ~8      !0, '%3AtableName'
          8        ASSIGN                                                   !3, ~8
   28     9        INIT_METHOD_CALL                                         !2, 'execute'
         10        SEND_VAR_EX                                              !3
         11        DO_FCALL                                      0  $10     
         12      > RETURN                                                   $10
   29    13*     > RETURN                                                   null

End of function %EF%BC%88%E2%95%AF%C2%B0%E2%96%A1%C2%B0%EF%BC%89%E2%95%AF%EF%B8%B5%E2%94%BB%E2%94%81%E2%94%BB

End of class TableHelper.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.76 ms | 1395 KiB | 13 Q