3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $varA = 'a'; public function doA() { return 'd'; } public function doB() { return $this->varA; } } var_dump(A::doA(),A::doB());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cq7Jn
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_STATIC_METHOD_CALL                                  'A', 'doA'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        INIT_STATIC_METHOD_CALL                                  'A', 'doB'
          5        DO_FCALL                                      0  $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class A:
Function doa:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cq7Jn
function name:  doA
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   'd'
   10     1*     > RETURN                                                   null

End of function doa

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

End of function dob

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.63 ms | 1395 KiB | 15 Q