3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! interface bob { } abstract class bobby implements bob {} class A extends bobby { public function __construct($ob) { echo $ob->value; } } class B extends bobby { private $value = 'unicorns'; } $a = new A(new B());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WXUfM
function name:  (null)
number of ops:  10
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'bobby'
   10     1        DECLARE_CLASS                                            'a', 'bobby'
   16     2        DECLARE_CLASS                                            'b', 'bobby'
   20     3        NEW                                              $1      'A'
          4        NEW                                              $2      'B'
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $2
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $1
          9      > RETURN                                                   1

Class bob: [no user functions]
Class bobby: [no user functions]
Class A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WXUfM
function name:  __construct
number of ops:  4
compiled vars:  !0 = $ob
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        FETCH_OBJ_R                                      ~1      !0, 'value'
          2        ECHO                                                     ~1
   13     3      > RETURN                                                   null

End of function __construct

End of class A.

Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
214.14 ms | 1393 KiB | 13 Q