Sandbox for inspecting and transforming strings in PHP code