3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public function __construct() { $this->publicMethod(); $this->privateMethod(); $this->protectedMethod(); } public function publicMethod() { echo 'public: OK' . "\n"; } private function privateMethod() { echo 'private: OK' . "\n"; } protected function protectedMethod() { echo 'protected: OK' . "\n"; } } new a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PmtYN
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   NEW                                              $0      'a'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
          3      > RETURN                                                   1

Class a:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PmtYN
function name:  __construct
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_METHOD_CALL                                         'publicMethod'
          1        DO_FCALL                                      0          
    8     2        INIT_METHOD_CALL                                         'privateMethod'
          3        DO_FCALL                                      0          
    9     4        INIT_METHOD_CALL                                         'protectedMethod'
          5        DO_FCALL                                      0          
   10     6      > RETURN                                                   null

End of function __construct

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

End of function publicmethod

Function privatemethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PmtYN
function name:  privateMethod
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   ECHO                                                     'private%3A+OK%0A'
   20     1      > RETURN                                                   null

End of function privatemethod

Function protectedmethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PmtYN
function name:  protectedMethod
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   ECHO                                                     'protected%3A+OK%0A'
   24     1      > RETURN                                                   null

End of function protectedmethod

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.7 ms | 1395 KiB | 13 Q