3v4l.org

run code in 300+ PHP versions simultaneously
<?php //con sttaic no va class P { public $az; static $a=8; function __get($var) { echo 'BBBB'; return $this->$var; } function __isset($var) { echo 'AAAAA'; return true; } } $P=new P; var_dump($P->$a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c9FhA
function name:  (null)
number of ops:  8
compiled vars:  !0 = $P, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $2      'P'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   27     3        INIT_FCALL                                               'var_dump'
          4        FETCH_OBJ_R                                      ~5      !0, !1
          5        SEND_VAL                                                 ~5
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

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

End of function __get

Function __isset:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c9FhA
function name:  __isset
number of ops:  4
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   17     1        ECHO                                                     'AAAAA'
   18     2      > RETURN                                                   <true>
   19     3*     > RETURN                                                   null

End of function __isset

End of class P.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.43 ms | 1395 KiB | 15 Q