3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Toto { const TOTO = 1; public function toto1() { $toto = self::TOTO; } public function toto2() { $toto = $this->getToto(); } private function getToto() { return 1;}}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZEgLA
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E > > RETURN                                                   1

Class Toto:
Function toto1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZEgLA
function name:  toto1
number of ops:  2
compiled vars:  !0 = $toto
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 1
   10     1      > RETURN                                                   null

End of function toto1

Function toto2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZEgLA
function name:  toto2
number of ops:  4
compiled vars:  !0 = $toto
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_METHOD_CALL                                         'getToto'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
   14     3      > RETURN                                                   null

End of function toto2

Function gettoto:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZEgLA
function name:  getToto
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E > > RETURN                                                   1
          1*     > RETURN                                                   null

End of function gettoto

End of class Toto.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.13 ms | 1394 KiB | 13 Q