3v4l.org

run code in 500+ PHP versions simultaneously
<?php class x { function p() { return $this->p; } } $x = new x; var_dump($x->p); var_dump($x->foo());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Sd9sr
function name:  (null)
number of ops:  13
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   NEW                                                  $1      'x'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   10     3        INIT_FCALL                                                   'var_dump'
          4        FETCH_OBJ_R                                          ~4      !0, 'p'
          5        SEND_VAL                                                     ~4
          6        DO_ICALL                                                     
   11     7        INIT_FCALL                                                   'var_dump'
          8        INIT_METHOD_CALL                                             !0, 'foo'
          9        DO_FCALL                                          0  $6      
         10        SEND_VAR                                                     $6
         11        DO_ICALL                                                     
         12      > RETURN                                                       1

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

End of function p

End of class x.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
154.38 ms | 1485 KiB | 14 Q