3v4l.org

run code in 300+ PHP versions simultaneously
<?php function GetLongestString() { return max(array_map('strlen', func_get_args())); } echo GetLongestString("aa", "bcd", "fg"); echo GetLongestString("a", "bcde", "fgh", "ij", "");

preferences:
52.18 ms | 402 KiB | 5 Q