3v4l.org

run code in 500+ PHP versions simultaneously
<?php abstract class Abunyasha { public function ban (): string { $this->poshatatMakabu(); $this->goToMailRu(); // И ещё много всякого кода, который на 100% одинаков для всех наследников. return "Ban po prichine: " . $this->getReason() . "!"; } public function poshatatMakabu () : void { var_dump("2ch ypal"); } public function goToMailRu () : void { var_dump("prepare your anus"); } abstract public function getReason(): string; } class AnonOne extends Abunyasha { public function getReason(): string { return "ti pidor"; } } class AnonTwo extends Abunyasha { public function getReason(): string { return "ti animeshnik"; } } class AnonThree extends Abunyasha { public function getReason(): string { return "ti postil cp"; } } $aOne = new AnonOne(); var_dump($aOne->ban()); $aTwo = new AnonTwo(); var_dump($aTwo->ban()); $aThree = new AnonThree(); var_dump($aThree->ban());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  (null)
number of ops:  25
compiled vars:  !0 = $aOne, !1 = $aTwo, !2 = $aThree
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   38     0  E >   NEW                                                  $3      'AnonOne'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $3
   39     3        INIT_FCALL                                                   'var_dump'
          4        INIT_METHOD_CALL                                             !0, 'ban'
          5        DO_FCALL                                          0  $6      
          6        SEND_VAR                                                     $6
          7        DO_ICALL                                                     
   40     8        NEW                                                  $8      'AnonTwo'
          9        DO_FCALL                                          0          
         10        ASSIGN                                                       !1, $8
   41    11        INIT_FCALL                                                   'var_dump'
         12        INIT_METHOD_CALL                                             !1, 'ban'
         13        DO_FCALL                                          0  $11     
         14        SEND_VAR                                                     $11
         15        DO_ICALL                                                     
   42    16        NEW                                                  $13     'AnonThree'
         17        DO_FCALL                                          0          
         18        ASSIGN                                                       !2, $13
   43    19        INIT_FCALL                                                   'var_dump'
         20        INIT_METHOD_CALL                                             !2, 'ban'
         21        DO_FCALL                                          0  $16     
         22        SEND_VAR                                                     $16
         23        DO_ICALL                                                     
         24      > RETURN                                                       1

Class Abunyasha:
Function ban:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  ban
number of ops:  12
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_METHOD_CALL                                             'poshatatMakabu'
          1        DO_FCALL                                          0          
    6     2        INIT_METHOD_CALL                                             'goToMailRu'
          3        DO_FCALL                                          0          
    9     4        INIT_METHOD_CALL                                             'getReason'
          5        DO_FCALL                                          0  $2      
          6        CONCAT                                               ~3      'Ban+po+prichine%3A+', $2
          7        CONCAT                                               ~4      ~3, '%21'
          8        VERIFY_RETURN_TYPE                                           ~4
          9      > RETURN                                                       ~4
   10    10*       VERIFY_RETURN_TYPE                                           
         11*     > RETURN                                                       null

End of function ban

Function poshatatmakabu:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  poshatatMakabu
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                                   'var_dump'
          1        SEND_VAL                                                     '2ch+ypal'
          2        DO_ICALL                                                     
   14     3      > RETURN                                                       null

End of function poshatatmakabu

Function gotomailru:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  goToMailRu
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                                   'var_dump'
          1        SEND_VAL                                                     'prepare+your+anus'
          2        DO_ICALL                                                     
   17     3      > RETURN                                                       null

End of function gotomailru

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

End of function getreason

End of class Abunyasha.

Class AnonOne:
Function getreason:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  getReason
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   24     0  E > > RETURN                                                       'ti+pidor'
   25     1*       VERIFY_RETURN_TYPE                                           
          2*     > RETURN                                                       null

End of function getreason

Function ban:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  ban
number of ops:  12
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_METHOD_CALL                                             'poshatatMakabu'
          1        DO_FCALL                                          0          
    6     2        INIT_METHOD_CALL                                             'goToMailRu'
          3        DO_FCALL                                          0          
    9     4        INIT_METHOD_CALL                                             'getReason'
          5        DO_FCALL                                          0  $2      
          6        CONCAT                                               ~3      'Ban+po+prichine%3A+', $2
          7        CONCAT                                               ~4      ~3, '%21'
          8        VERIFY_RETURN_TYPE                                           ~4
          9      > RETURN                                                       ~4
   10    10*       VERIFY_RETURN_TYPE                                           
         11*     > RETURN                                                       null

End of function ban

Function poshatatmakabu:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  poshatatMakabu
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                                   'var_dump'
          1        SEND_VAL                                                     '2ch+ypal'
          2        DO_ICALL                                                     
   14     3      > RETURN                                                       null

End of function poshatatmakabu

Function gotomailru:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  goToMailRu
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                                   'var_dump'
          1        SEND_VAL                                                     'prepare+your+anus'
          2        DO_ICALL                                                     
   17     3      > RETURN                                                       null

End of function gotomailru

End of class AnonOne.

Class AnonTwo:
Function getreason:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  getReason
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   29     0  E > > RETURN                                                       'ti+animeshnik'
   30     1*       VERIFY_RETURN_TYPE                                           
          2*     > RETURN                                                       null

End of function getreason

Function ban:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  ban
number of ops:  12
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_METHOD_CALL                                             'poshatatMakabu'
          1        DO_FCALL                                          0          
    6     2        INIT_METHOD_CALL                                             'goToMailRu'
          3        DO_FCALL                                          0          
    9     4        INIT_METHOD_CALL                                             'getReason'
          5        DO_FCALL                                          0  $2      
          6        CONCAT                                               ~3      'Ban+po+prichine%3A+', $2
          7        CONCAT                                               ~4      ~3, '%21'
          8        VERIFY_RETURN_TYPE                                           ~4
          9      > RETURN                                                       ~4
   10    10*       VERIFY_RETURN_TYPE                                           
         11*     > RETURN                                                       null

End of function ban

Function poshatatmakabu:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  poshatatMakabu
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                                   'var_dump'
          1        SEND_VAL                                                     '2ch+ypal'
          2        DO_ICALL                                                     
   14     3      > RETURN                                                       null

End of function poshatatmakabu

Function gotomailru:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  goToMailRu
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                                   'var_dump'
          1        SEND_VAL                                                     'prepare+your+anus'
          2        DO_ICALL                                                     
   17     3      > RETURN                                                       null

End of function gotomailru

End of class AnonTwo.

Class AnonThree:
Function getreason:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  getReason
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   34     0  E > > RETURN                                                       'ti+postil+cp'
   35     1*       VERIFY_RETURN_TYPE                                           
          2*     > RETURN                                                       null

End of function getreason

Function ban:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  ban
number of ops:  12
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_METHOD_CALL                                             'poshatatMakabu'
          1        DO_FCALL                                          0          
    6     2        INIT_METHOD_CALL                                             'goToMailRu'
          3        DO_FCALL                                          0          
    9     4        INIT_METHOD_CALL                                             'getReason'
          5        DO_FCALL                                          0  $2      
          6        CONCAT                                               ~3      'Ban+po+prichine%3A+', $2
          7        CONCAT                                               ~4      ~3, '%21'
          8        VERIFY_RETURN_TYPE                                           ~4
          9      > RETURN                                                       ~4
   10    10*       VERIFY_RETURN_TYPE                                           
         11*     > RETURN                                                       null

End of function ban

Function poshatatmakabu:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  poshatatMakabu
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                                   'var_dump'
          1        SEND_VAL                                                     '2ch+ypal'
          2        DO_ICALL                                                     
   14     3      > RETURN                                                       null

End of function poshatatmakabu

Function gotomailru:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CRNMZ
function name:  goToMailRu
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   INIT_FCALL                                                   'var_dump'
          1        SEND_VAL                                                     'prepare+your+anus'
          2        DO_ICALL                                                     
   17     3      > RETURN                                                       null

End of function gotomailru

End of class AnonThree.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.89 ms | 1477 KiB | 14 Q