3v4l.org

run code in 300+ PHP versions simultaneously
<?php // palindrom function anagram($s1, $s2) { $l1 = strlen($s1); $l2 = strlen($s2); if($l1 != $l2) return false; return ($s1); // $w1 = array(); $w2 = array(); // for($a=0; $a<$l1; $a++) { if(array_key_exists($s1[$a], $w1)) $w1[$s1[$a]] = $w1[$s1[$a]]+1; else $w[$s1[$a]] = 1; } var_dump($w1); } echo anagram('test', 'test');
Output for git.master, git.master_jit, rfc.property-hooks
test

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