3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestParent { protected $prop = "Are properties virtual?"; static $sprop = "How about static ones?"; } class Child extends TestParent { public function test() { echo $this->prop; echo self::$sprop; } } $c = new Child(); $c->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/68e9O
function name:  (null)
number of ops:  6
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'Child'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, 'test'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class TestParent: [no user functions]
Class Child:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/68e9O
function name:  test
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   FETCH_OBJ_R                                      ~0      'prop'
          1        ECHO                                                     ~0
   10     2        FETCH_STATIC_PROP_R          unknown             ~1      'sprop'
          3        ECHO                                                     ~1
   11     4      > RETURN                                                   null

End of function test

End of class Child.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.27 ms | 1392 KiB | 13 Q