3v4l.org

run code in 300+ PHP versions simultaneously
<?php class trial{ public $id; //public static $id; public function show(){ echo $this->$id; } } $obj = new trial(); $obj->id = 1; $obj->show();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1iYZD
function name:  (null)
number of ops:  8
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'trial'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        ASSIGN_OBJ                                               !0, 'id'
          4        OP_DATA                                                  1
   14     5        INIT_METHOD_CALL                                         !0, 'show'
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

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

End of function show

End of class trial.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.17 ms | 938 KiB | 14 Q