3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function __get($name) { return $this->$name; } } $f = new foo(); echo $f->foo; class bar { } $b = new bar(); echo $b->bar;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YBvLe
function name:  (null)
number of ops:  11
compiled vars:  !0 = $f, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   13     3        FETCH_OBJ_R                                      ~5      !0, 'foo'
          4        ECHO                                                     ~5
   19     5        NEW                                              $6      'bar'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
   21     8        FETCH_OBJ_R                                      ~9      !1, 'bar'
          9        ECHO                                                     ~9
         10      > RETURN                                                   1

Class foo:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YBvLe
function name:  __get
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        FETCH_OBJ_R                                      ~1      !0
          2      > RETURN                                                   ~1
    8     3*     > RETURN                                                   null

End of function __get

End of class foo.

Class bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.98 ms | 1393 KiB | 13 Q