3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SuckLess { public function __construct($penis) { $this->boner = new $penis; } public function dick() { $this->boner->dick(); } } class Fat { public function dick() { return 'puzzzzz'; } } class Thin { public function dick() { return 'pizzzzz'; } } $suckLess = new SuckLess('Fat'); var_dump($suckLess->dick());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WtvvD
function name:  (null)
number of ops:  10
compiled vars:  !0 = $suckLess
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $1      'SuckLess'
          1        SEND_VAL_EX                                              'Fat'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   21     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !0, 'dick'
          6        DO_FCALL                                      0  $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class SuckLess:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WtvvD
function name:  __construct
number of ops:  7
compiled vars:  !0 = $penis
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        FETCH_CLASS                                   0  $2      !0
          2        NEW                                              $3      $2
          3        DO_FCALL                                      0          
          4        ASSIGN_OBJ                                               'boner'
          5        OP_DATA                                                  $3
    5     6      > RETURN                                                   null

End of function __construct

Function dick:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WtvvD
function name:  dick
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_OBJ_R                                      ~0      'boner'
          1        INIT_METHOD_CALL                                         ~0, 'dick'
          2        DO_FCALL                                      0          
    8     3      > RETURN                                                   null

End of function dick

End of class SuckLess.

Class Fat:
Function dick:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WtvvD
function name:  dick
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                   'puzzzzz'
   13     1*     > RETURN                                                   null

End of function dick

End of class Fat.

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

End of function dick

End of class Thin.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.25 ms | 1400 KiB | 15 Q