3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass{ public $a = []; public function __set($name, $value) { $a[$name] = $value; } public function __get($name) { return $a[$name]; } } $test = new TestClass(); $test->a = new TestClass(); var_dump(isset($test->a));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WOagR
function name:  (null)
number of ops:  12
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'TestClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        NEW                                              $5      'TestClass'
          4        DO_FCALL                                      0          
          5        ASSIGN_OBJ                                               !0, 'a'
          6        OP_DATA                                                  $5
   20     7        INIT_FCALL                                               'var_dump'
          8        ISSET_ISEMPTY_PROP_OBJ                           ~7      !0, 'a'
          9        SEND_VAL                                                 ~7
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

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

End of function __set

Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WOagR
function name:  __get
number of ops:  4
compiled vars:  !0 = $name, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   13     1        FETCH_DIM_R                                      ~2      !1, !0
          2      > RETURN                                                   ~2
   14     3*     > RETURN                                                   null

End of function __get

End of class TestClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.82 ms | 1395 KiB | 15 Q