3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Dog { private $noise; public function __construct(string $noise) { $this->noise = $noise; } public function bark() { print $this->noise; } } $dog = new Dog("woooof!"); $dog->bark();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DLui0
function name:  (null)
number of ops:  7
compiled vars:  !0 = $dog
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'Dog'
          1        SEND_VAL_EX                                              'woooof%21'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   17     4        INIT_METHOD_CALL                                         !0, 'bark'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class Dog:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DLui0
function name:  __construct
number of ops:  4
compiled vars:  !0 = $noise
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        ASSIGN_OBJ                                               'noise'
          2        OP_DATA                                                  !0
    9     3      > RETURN                                                   null

End of function __construct

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

End of function bark

End of class Dog.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.65 ms | 1393 KiB | 13 Q