3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! class Framework { const NAME = "Microd"; const SOURCE_VERSION = "0.1.0"; const DATABASE_VERSION = "0.1.0"; function __construct() { echo "Framework Start\n"; } function __destruct() { echo "Framework End\n"; } } class Test extends Framework { const NAME = "Microd"; const SOURCE_VERSION = "0.1.0"; const DATABASE_VERSION = "0.1.0"; function __construct() { echo "Test Start\n"; } function __destruct() { echo "Test End\n"; } } $framework = new Framework(); //echo \Microd\Framework::DATABASE_VERSION; $test = new Test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LKBid
function name:  (null)
number of ops:  7
compiled vars:  !0 = $framework, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E >   NEW                                              $2      'Framework'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   39     3        NEW                                              $5      'Test'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
          6      > RETURN                                                   1

Class Framework:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LKBid
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'Framework+Start%0A'
   12     1      > RETURN                                                   null

End of function __construct

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LKBid
function name:  __destruct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ECHO                                                     'Framework+End%0A'
   16     1      > RETURN                                                   null

End of function __destruct

End of class Framework.

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

End of function __construct

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LKBid
function name:  __destruct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   ECHO                                                     'Test+End%0A'
   32     1      > RETURN                                                   null

End of function __destruct

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.75 ms | 1395 KiB | 13 Q