3v4l.org

run code in 500+ PHP versions simultaneously
<?php $o = new class { public $val = 'I do get seen!'; public function fun() { // use `this` to reference the current object we are in! return $this->val; } }; var_dump($o->fun());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rR7P4
function name:  (null)
number of ops:  10
compiled vars:  !0 = $o
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_ANON_CLASS                                   <unknown> 
          1        NEW                                                  $2      $1
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $2
   12     4        INIT_FCALL                                                   'var_dump'
          5        INIT_METHOD_CALL                                             !0, 'fun'
          6        DO_FCALL                                          0  $5      
          7        SEND_VAR                                                     $5
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Class class@anonymous:
Function fun:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rR7P4
function name:  fun
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   FETCH_OBJ_R                                          ~0      'val'
          1      > RETURN                                                       ~0
    9     2*     > RETURN                                                       null

End of function fun

End of class class@anonymous.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.34 ms | 2552 KiB | 14 Q