3v4l.org

run code in 500+ PHP versions simultaneously
<?php class DatabaseConnection { } class Query { public function __construct(DatabaseConnection $connection, $options) { } } class SelectQuery extends Query { public function __construct($table, $alias = NULL, DatabaseConnection $connection = NULL, $options = array()) { parent::__construct($connection, $options); } } $db = new DatabaseConnection(); $select = new SelectQuery('table', NULL, NULL, array());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A3j9G
function name:  (null)
number of ops:  11
compiled vars:  !0 = $db, !1 = $select
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   19     0  E >   NEW                                                  $2      'DatabaseConnection'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
   20     3        NEW                                                  $5      'SelectQuery'
          4        SEND_VAL_EX                                                  'table'
          5        SEND_VAL_EX                                                  null
          6        SEND_VAL_EX                                                  null
          7        SEND_VAL_EX                                                  <array>
          8        DO_FCALL                                          0          
          9        ASSIGN                                                       !1, $5
         10      > RETURN                                                       1

Class DatabaseConnection: [no user functions]
Class Query:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A3j9G
function name:  __construct
number of ops:  3
compiled vars:  !0 = $connection, !1 = $options
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   10     2      > RETURN                                                       null

End of function __construct

End of class Query.

Class SelectQuery:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A3j9G
function name:  __construct
number of ops:  9
compiled vars:  !0 = $table, !1 = $alias, !2 = $connection, !3 = $options
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   RECV                                                 !0      
          1        RECV_INIT                                            !1      null
          2        RECV_INIT                                            !2      null
          3        RECV_INIT                                            !3      <array>
   15     4        INIT_STATIC_METHOD_CALL                                      
          5        SEND_VAR_EX                                                  !2
          6        SEND_VAR_EX                                                  !3
          7        DO_FCALL                                          0          
   16     8      > RETURN                                                       null

End of function __construct

End of class SelectQuery.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
218.65 ms | 2202 KiB | 13 Q