3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cryptArray = array( "a"=>"xyz","b"=>"256"); $string = "aab"; function cryptit($string,$cryptArray){ $temp = ""; $length = strlen($string); for($i=0; $i<$length; $i++){ $temp .= $cryptArray[$string[$i]]; } return $temp; } function decryptit($string,$cryptArray){ $temp = ""; $length = strlen($string); $cryptArray = array_flip($cryptArray); for($i =0; $i<$length; $i = $i+3){ $temp .= $cryptArray[$string[$i].$string[$i+1].$string[$i+2]]; } return $temp; } $crypted = cryptit($string,$cryptArray); echo $crypted; $decrypted = decryptit($crypted,$cryptArray); echo $decrypted;
Output for git.master, git.master_jit, rfc.property-hooks
xyzxyz256aab

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