3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file_id = 1; $project_id = 1; $token = $project_id; $expiry = strtotime('+1 years'); $signature = hash_hmac('sha256', "{$file_id}-{$token}-{$expiry}", "shared-secret"); $url = "https://media.example.com/?file_id={$file_id}&token={$token}&expiry={$expiry}&signature={$signature}"; var_dump($file_id, $token, $expiry, $signature, $url);
Output for git.master, git.master_jit, rfc.property-hooks
int(1) int(1) int(1427202418) string(64) "ad5de2f34db367962d1e9d327a30e571eb455faee5275eb97933bacf315c14c8" string(137) "https://media.example.com/?file_id=1&token=1&expiry=1427202418&signature=ad5de2f34db367962d1e9d327a30e571eb455faee5275eb97933bacf315c14c8"

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
46.17 ms | 401 KiB | 8 Q