3v4l.org

run code in 300+ PHP versions simultaneously
<?php $z = "hejsanhejsan";//$argv[1]; $x = str_split($z, 5); $l = "ABCDEFGHIJKLMNOPQRSTUVWXYZ012345"; foreach ($x as $y) { var_dump(str_split(strrev($y))); foreach (str_split(strrev($y)) as $w) { $y[] = ctype_upper($w); } $z .= $l[bindec($y)]; } echo $z;
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> string(1) "a" [1]=> string(1) "s" [2]=> string(1) "j" [3]=> string(1) "e" [4]=> string(1) "h" } Fatal error: Uncaught Error: [] operator not supported for strings in /in/Xpvkc:8 Stack trace: #0 {main} thrown in /in/Xpvkc on line 8
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:
89.01 ms | 401 KiB | 8 Q