3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $messages = array(); public function addMessage($message) { $this->messages[] = $message; } } class Bar extends Foo { public function __construct() { parent::addMessage('Hello World'); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1YRmu
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E > > RETURN                                                   1

Class Foo:
Function addmessage:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1YRmu
function name:  addMessage
number of ops:  5
compiled vars:  !0 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        FETCH_OBJ_W                                      $1      'messages'
          2        ASSIGN_DIM                                               $1
          3        OP_DATA                                                  !0
   10     4      > RETURN                                                   null

End of function addmessage

End of class Foo.

Class Bar:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1YRmu
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_STATIC_METHOD_CALL                                  'addMessage'
          1        SEND_VAL_EX                                              'Hello+World'
          2        DO_FCALL                                      0          
   18     3      > RETURN                                                   null

End of function __construct

Function addmessage:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1YRmu
function name:  addMessage
number of ops:  5
compiled vars:  !0 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        FETCH_OBJ_W                                      $1      'messages'
          2        ASSIGN_DIM                                               $1
          3        OP_DATA                                                  !0
   10     4      > RETURN                                                   null

End of function addmessage

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.45 ms | 1394 KiB | 13 Q