3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MeineKlasse { private $info; public function setInfo(Information $info_in) { $this->info = $info_in; } public function getNews() { echo $this->info->getInformation(); } } class Information { public function getInformation() { return "hallo"; } } $info = new Information(); $meine_klasse = new MeineKlasse(); $meine_klasse->setInfo($info); $meine_klasse->getNews();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPKhB
function name:  (null)
number of ops:  12
compiled vars:  !0 = $info, !1 = $meine_klasse
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $2      'Information'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   22     3        NEW                                              $5      'MeineKlasse'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   23     6        INIT_METHOD_CALL                                         !1, 'setInfo'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
   24     9        INIT_METHOD_CALL                                         !1, 'getNews'
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Class MeineKlasse:
Function setinfo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPKhB
function name:  setInfo
number of ops:  4
compiled vars:  !0 = $info_in
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ASSIGN_OBJ                                               'info'
          2        OP_DATA                                                  !0
    8     3      > RETURN                                                   null

End of function setinfo

Function getnews:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dPKhB
function name:  getNews
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_OBJ_R                                      ~0      'info'
          1        INIT_METHOD_CALL                                         ~0, 'getInformation'
          2        DO_FCALL                                      0  $1      
          3        ECHO                                                     $1
   12     4      > RETURN                                                   null

End of function getnews

End of class MeineKlasse.

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

End of function getinformation

End of class Information.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.35 ms | 1395 KiB | 13 Q