3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public int $prop = 0; public const HOGE = 'hoge'; } class Bar extends Foo { public int $prop = 10; public const HOGE = 'hoge_revised'; public function dump() { var_dump($this->prop); var_dump(self::HOGE); } } (new Bar)->dump();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FcvLo
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $0      'Bar'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'dump'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Class Foo: [no user functions]
Class Bar:
Function dump:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FcvLo
function name:  dump
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_OBJ_R                                      ~0      'prop'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   15     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAL                                                 'hoge_revised'
          6        DO_ICALL                                                 
   16     7      > RETURN                                                   null

End of function dump

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.29 ms | 996 KiB | 14 Q