3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class lol { private function __construct() {} private function asdf() { echo "hello"; } } class rofl extends lol { public function __construct() { echo "hi"; } public function asdf(){ parent::asdf(); } } (new rofl())->asdf();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bjefa
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $0      'rofl'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'asdf'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

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

End of function __construct

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

End of function asdf

End of class lol.

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

End of function __construct

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

End of function asdf

End of class rofl.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.13 ms | 1399 KiB | 13 Q