3v4l.org

run code in 300+ PHP versions simultaneously
<?php class kek { private $wow = 'kek'; public function getWow() { return $wow; } } class mek extends kek { public function __construct() { $this->wow = 'mek'; } } $mek = new mek(); var_dump($mek->getWow());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UNKqs
function name:  (null)
number of ops:  9
compiled vars:  !0 = $mek
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'mek'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'getWow'
          5        DO_FCALL                                      0  $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class kek:
Function getwow:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UNKqs
function name:  getWow
number of ops:  2
compiled vars:  !0 = $wow
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   !0
    8     1*     > RETURN                                                   null

End of function getwow

End of class kek.

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

End of function __construct

Function getwow:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UNKqs
function name:  getWow
number of ops:  2
compiled vars:  !0 = $wow
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   !0
    8     1*     > RETURN                                                   null

End of function getwow

End of class mek.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.85 ms | 1395 KiB | 15 Q