3v4l.org

run code in 300+ 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:
25.99 ms | 406 KiB | 5 Q