3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); enum ImageBoardDomains: string { case Dvach = 'ru'; case Sosach = 'so'; case Harkach = 'hk'; } abstract class ImageBoard { abstract public function getDomain(): string; } class Dvach extends ImageBoard { public function getDomain(): string { return ImageBoardDomains::Dvach->value; } } class Sosach extends ImageBoard { public function getDomain(): string { return ImageBoardDomains::Sosach->value; } } class Harkach extends ImageBoard { public function getDomain(): string { return ImageBoardDomains::Harkach->value; } } print_r(ImageBoardDomains::cases());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hQAbU
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                                'imageboarddomains'
   36     1        INIT_FCALL                                                   'print_r'
          2        INIT_STATIC_METHOD_CALL                                      'ImageBoardDomains', 'cases'
          3        DO_FCALL                                          0  $0      
          4        SEND_VAR                                                     $0
          5        DO_ICALL                                                     
          6      > RETURN                                                       1

Class ImageBoardDomains: [no user functions]
Class ImageBoard:
Function getdomain:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hQAbU
function name:  getDomain
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E >   VERIFY_RETURN_TYPE                                           
          1      > RETURN                                                       null

End of function getdomain

End of class ImageBoard.

Class Dvach:
Function getdomain:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hQAbU
function name:  getDomain
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   FETCH_CLASS_CONSTANT                                 ~0      'ImageBoardDomains', 'Dvach'
          1        FETCH_OBJ_R                                          ~1      ~0, 'value'
          2        VERIFY_RETURN_TYPE                                           ~1
          3      > RETURN                                                       ~1
   19     4*       VERIFY_RETURN_TYPE                                           
          5*     > RETURN                                                       null

End of function getdomain

End of class Dvach.

Class Sosach:
Function getdomain:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hQAbU
function name:  getDomain
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   25     0  E >   FETCH_CLASS_CONSTANT                                 ~0      'ImageBoardDomains', 'Sosach'
          1        FETCH_OBJ_R                                          ~1      ~0, 'value'
          2        VERIFY_RETURN_TYPE                                           ~1
          3      > RETURN                                                       ~1
   26     4*       VERIFY_RETURN_TYPE                                           
          5*     > RETURN                                                       null

End of function getdomain

End of class Sosach.

Class Harkach:
Function getdomain:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hQAbU
function name:  getDomain
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   32     0  E >   FETCH_CLASS_CONSTANT                                 ~0      'ImageBoardDomains', 'Harkach'
          1        FETCH_OBJ_R                                          ~1      ~0, 'value'
          2        VERIFY_RETURN_TYPE                                           ~1
          3      > RETURN                                                       ~1
   33     4*       VERIFY_RETURN_TYPE                                           
          5*     > RETURN                                                       null

End of function getdomain

End of class Harkach.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.1 ms | 1585 KiB | 14 Q