3v4l.org

run code in 300+ PHP versions simultaneously
<?php use PDO; interface Connection { function prepare($statement); } class PDOConnection extends PDO implements Connection { public function __construct($dsn, $user = null, $password = null, array $options = null) { parent::__construct($dsn, $user, $password, $options); } } new PDOConnection('sqlite::memory:');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qOP06
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                            'pdoconnection', 'pdo'
   18     1        NEW                                              $0      'PDOConnection'
          2        SEND_VAL_EX                                              'sqlite%3A%3Amemory%3A'
          3        DO_FCALL                                      0          
          4        FREE                                                     $0
          5      > RETURN                                                   1

Class Connection:
Function prepare:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qOP06
function name:  prepare
number of ops:  2
compiled vars:  !0 = $statement
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function prepare

End of class Connection.

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

End of function __construct

End of class PDOConnection.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.71 ms | 1394 KiB | 13 Q