3v4l.org

run code in 300+ PHP versions simultaneously
<?php function zoza($arr) { $names = ''; foreach ($arr as $key => $val) { if (is_array($val)) { $names .= '"' . $key . '"'; $names .= zoza($val); } else { $names .= '"' . $key . '"' . '"' . $val . '"'; } } return $names ; } $data = [ 'a' => 'test', 'b' => [ [ ['something'] ] ] ]; $s = zoza($data); $h = hash('sha256', $s, false); echo $s, PHP_EOL, $h;
Output for git.master, git.master_jit, rfc.property-hooks
"a""test""b""0""0""0""something" 72597037bd2c14df0e4580cf79f83aed0657987cabd6f1f5968bc59dad634072

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:
64.48 ms | 405 KiB | 5 Q