Check php and wordpress version before activation

To check the PHP version in WordPress, use the following code snippet:

echo 'PHP version: ' . phpversion();

To check the WordPress version, use:

echo 'WordPress version: ' . get_bloginfo('version');

These code snippets can be inserted into a PHP file within your WordPress directory and accessed through a browser to display the PHP and WordPress versions respectively.