3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?hh function transform($str) { return $str |> strtoupper($$) |> str_replace(' ', '_', $$) |> str_split($$) |> array_map(function($chr) { return ord($chr); }, $$) |> array_map(function($num) { return chr($num); }, $$) |> join(', ', $$); } echo transform("Flemming Busman");
Output for hhvm-3.22.0
F, L, E, M, M, I, N, G, _, B, U, S, M, A, N