Add PHP code to block's content Is there a module that allows a php text filter in drupal 8? This was a possibility in drupal-7 but I can not find something similar to 8.
The PHP filter module was removed from core, because of the inherent security problems it presents.

It now exists as a separate contrib module, but beware that even the module description itself warns against using it:


  Warning
  
  Enabling this module can cause security and performance issues as it allows users to execute PHP code on your site. There are better alternatives out there that do not expose such vulnerabilities on your site.