3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = htmlentities('cal@gmail.com', ENT_QUOTES); $private_key = '6KzVA_2qy'; //possible de la changer function f_crypt($private_key, $str_to_crypt) { $private_key = md5($private_key); $letter = -1; $new_str = ''; $strlen = strlen($str_to_crypt); for ($i = 0; $i < $strlen; $i++) { $letter++; if ($letter > 31) { $letter = 0; } $neword = ord($str_to_crypt{$i}) + ord($private_key{$letter}); if ($neword > 255) { $neword -= 256; } $new_str .= chr($neword); } return base64_url_encode($new_str); } ECHO f_crypt($private_key, $email);
Output for git.master, git.master_jit
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /in/b9C5v on line 17
Process exited with code 255.
Output for rfc.property-hooks
Parse error: syntax error, unexpected token "{", expecting ")" in /in/b9C5v on line 17
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:
50.89 ms | 401 KiB | 8 Q