3v4l.org

run code in 300+ PHP versions simultaneously
<?php class sfUser { public $suchergebnis=array(); public function getSuchergebnis(){ var_dump($this->suchergebnis); return $this->suchergebnis; } } $mockUser=new sfUser(); $mockUser->getSuchergebnis(); $ergebnis= array('ergebnis'=>array('hits'=>15)); $mockUser->suchergebnis=$ergebnis; var_dump($mockUser->suchergebnis); $mockUser->getSuchergebnis();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/62srd
function name:  (null)
number of ops:  15
compiled vars:  !0 = $mockUser, !1 = $ergebnis
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $2      'sfUser'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   13     3        INIT_METHOD_CALL                                         !0, 'getSuchergebnis'
          4        DO_FCALL                                      0          
   14     5        ASSIGN                                                   !1, <array>
   15     6        ASSIGN_OBJ                                               !0, 'suchergebnis'
          7        OP_DATA                                                  !1
   16     8        INIT_FCALL                                               'var_dump'
          9        FETCH_OBJ_R                                      ~8      !0, 'suchergebnis'
         10        SEND_VAL                                                 ~8
         11        DO_ICALL                                                 
   17    12        INIT_METHOD_CALL                                         !0, 'getSuchergebnis'
         13        DO_FCALL                                      0          
         14      > RETURN                                                   1

Class sfUser:
Function getsuchergebnis:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/62srd
function name:  getSuchergebnis
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_OBJ_R                                      ~0      'suchergebnis'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
    8     4        FETCH_OBJ_R                                      ~2      'suchergebnis'
          5      > RETURN                                                   ~2
    9     6*     > RETURN                                                   null

End of function getsuchergebnis

End of class sfUser.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.85 ms | 1395 KiB | 15 Q