3v4l.org

run code in 500+ PHP versions simultaneously
<?php // continuing with complex anagrams // if we have "babc" and we want a signature for this to get // --> [1, 2, 1, 0, 0, 0, ... , 0] function buildingSignature($input) { $signature = array_fill(0, 26, 0); $input = strtolower($input); for ($i = 0; $i < strlen($input); $i++) { $char = $input[$i]; $signature[ord($char) - ord('a')] += 1; } return $signature; } var_dump(buildingSingature("babc"));die;
Output for git.master_jit, git.master
Fatal error: Uncaught Error: Call to undefined function buildingSingature() in /in/oheco:18 Stack trace: #0 {main} thrown in /in/oheco on line 18
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:
41.07 ms | 757 KiB | 4 Q