3v4l.org

run code in 300+ PHP versions simultaneously
<?php function section(string $section): bool { if (empty($section) || !in_array($section, ['news', 'viewpoint'])) { return false; } return true; } var_dump(section('newsvvhfgjh'));

preferences:
55.57 ms | 402 KiB | 5 Q