3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types = 1); /** * @return string[] */ function helper(): array { return []; } $typed_string = helper(); $typed_string = mb_strtolower(array_pop($typed_string)); var_export($typed_string);

preferences:
56.18 ms | 1309 KiB | 5 Q