3v4l.org

run code in 300+ PHP versions simultaneously
<?php const HASH_ALGORITHM = "sha256"; $public_key = 'PUBLIC_KEY'; $private_key = 'PRIVATE_KEY'; $payload = array( "first_name" => "User", "last_name" =>"Test", "email" => "user.oc@test.com", "network" => "Open Colleges", "parent_email" => "oc@alffie.com", "password"=>"@UserTest12345", "confirm"=>"@UserTest12345", "phone"=>"0412345678", "role"=>"Student" ); $payload = json_encode($payload); $signature = base64_encode(hash_hmac(HASH_ALGORITHM, $payload, utf8_encode($private_key))); echo $signature;
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Function utf8_encode() is deprecated in /in/aZFZe on line 18 YjVjMzliMWVlZGY3YTRhM2NhOGM3NDA0NDMwZDU4ZjVmOTU2YmM2OTVhMjc5OWQxODExNDQ5MmUzMmY4Y2U5NQ==

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:
70.04 ms | 401 KiB | 8 Q