3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = []; if(array_filter($arr)) echo 'succ'; else echo 'failed'; if(empty($arr)) echo 'succ'; else echo 'failed';

preferences:
38.34 ms | 402 KiB | 5 Q