$ /path/to/interpreter/php /path/to/file.php
$ php file.php
$ php -S localhost:8000 file.php
<?php
echo '<img style="width: 242px; height: 224px;" src="https://habrastorage.org/webt/5d/af/4f/5daf4facbe8c6020796636.png" alt="такое">';
const resp = await fetch('https://other-site.com/api/json')
const data = await resp.json()
// теперь data - нужные данные