3v4l.org

run code in 300+ PHP versions simultaneously
<?php $results['id'] = 14; $results['post_link'] = 'cold_duck'; ?> <button type="button" class="btn btn-sm btn-outline-secondary" onclick="window.location.href = '<?= htmlentities($results["id"], ENT_QUOTES) ?>/<?= htmlentities($results["post_link"], ENT_QUOTES) ?>'">View</button>

preferences:
62.62 ms | 402 KiB | 5 Q