3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __get($prop) { return $prop; } } $a = new A; $var = $a->a; var_dump($a->a, isset($a->a), empty($a->a)); echo "\n"; var_dump($var, isset($var), empty($var));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tlaRe
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $2      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   10     3        FETCH_OBJ_R                                      ~5      !0, 'a'
          4        ASSIGN                                                   !1, ~5
   11     5        INIT_FCALL                                               'var_dump'
          6        FETCH_OBJ_R                                      ~7      !0, 'a'
          7        SEND_VAL                                                 ~7
          8        ISSET_ISEMPTY_PROP_OBJ                           ~8      !0, 'a'
          9        SEND_VAL                                                 ~8
         10        ISSET_ISEMPTY_PROP_OBJ                           ~9      !0, 'a'
         11        SEND_VAL                                                 ~9
         12        DO_ICALL                                                 
   12    13        ECHO                                                     '%0A'
   13    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        ISSET_ISEMPTY_CV                                 ~11     !1
         17        SEND_VAL                                                 ~11
         18        ISSET_ISEMPTY_CV                                 ~12     !1
         19        SEND_VAL                                                 ~12
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

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

End of function __get

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.72 ms | 1395 KiB | 15 Q