3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public function __construct() { throw new Exception(); } } class M extends A { } $db = new M('sqlite:test.db');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aLUDr
function name:  (null)
number of ops:  5
compiled vars:  !0 = $db
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   NEW                                                  $1      'M'
          1        SEND_VAL_EX                                                  'sqlite%3Atest.db'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
          4      > RETURN                                                       1

Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/aLUDr
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   NEW                                                  $0      'Exception'
          1        DO_FCALL                                          0          
          2      > THROW                                             0          $0
    6     3*     > RETURN                                                       null

End of function __construct

End of class A.

Class M:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/aLUDr
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   NEW                                                  $0      'Exception'
          1        DO_FCALL                                          0          
          2      > THROW                                             0          $0
    6     3*     > RETURN                                                       null

End of function __construct

End of class M.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171.74 ms | 1376 KiB | 13 Q