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
Fatal error: Uncaught Error: Undefined constant "PUBLIC_KEY" in /in/PAW4W:3 Stack trace: #0 {main} thrown in /in/PAW4W on line 3
Process exited with code 255.

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