3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'needle' => 'needle in haystack text', 'Need' => 'another needle', 'fine' => 'refined', 'found' => 'Foundation', '' => 'non-empty haystack', 'missing' => 'not here', 'This is 0 in a haystack!', ]; var_export( array_filter($array, 'str_contains', ARRAY_FILTER_USE_BOTH) );

preferences:
32.54 ms | 405 KiB | 5 Q