3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('parent', 1); class P { public static function hello() { echo 'hello'; } } class T extends P { public function __construct() { echo parent; parent::hello(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XiesZ
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'parent'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
   19     4      > RETURN                                                   1

Class P:
Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XiesZ
function name:  hello
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'hello'
   10     1      > RETURN                                                   null

End of function hello

End of class P.

Class T:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XiesZ
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   FETCH_CONSTANT                                   ~0      'parent'
          1        ECHO                                                     ~0
   17     2        INIT_STATIC_METHOD_CALL                                  'hello'
          3        DO_FCALL                                      0          
   18     4      > RETURN                                                   null

End of function __construct

Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XiesZ
function name:  hello
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'hello'
   10     1      > RETURN                                                   null

End of function hello

End of class T.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.64 ms | 1395 KiB | 15 Q