3v4l.org

run code in 300+ PHP versions simultaneously
<?php class billing{ private $cache=array(); public function resetCache(){ $this->cache=array(); return $this; } } class billing_info extends billing{ public function getPassword() { return $this->resetCache(); } } $o=new billing_info; var_dump($o->resetCache());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1OiTm
function name:  (null)
number of ops:  9
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'billing_info'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'resetCache'
          5        DO_FCALL                                      0  $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class billing:
Function resetcache:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1OiTm
function name:  resetCache
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN_OBJ                                               'cache'
          1        OP_DATA                                                  <array>
    6     2        FETCH_THIS                                       ~1      
          3      > RETURN                                                   ~1
    7     4*     > RETURN                                                   null

End of function resetcache

End of class billing.

Class billing_info:
Function getpassword:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1OiTm
function name:  getPassword
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_METHOD_CALL                                         'resetCache'
          1        DO_FCALL                                      0  $0      
          2      > RETURN                                                   $0
   13     3*     > RETURN                                                   null

End of function getpassword

Function resetcache:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1OiTm
function name:  resetCache
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN_OBJ                                               'cache'
          1        OP_DATA                                                  <array>
    6     2        FETCH_THIS                                       ~1      
          3      > RETURN                                                   ~1
    7     4*     > RETURN                                                   null

End of function resetcache

End of class billing_info.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168 ms | 1396 KiB | 15 Q