3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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;
based on XTvkW
Output for 7.0.0 - 7.2.0
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.
Output for 5.3.22 - 5.6.28
array(5) { [0]=> string(1) "a" [1]=> string(1) "s" [2]=> string(1) "j" [3]=> string(1) "e" [4]=> string(1) "h" } Fatal error: [] operator not supported for strings in /in/Xpvkc on line 8
Process exited with code 255.