3v4l.org

run code in 300+ PHP versions simultaneously
<?php array_filter(['a', 'b', 'c'], function($item){ if ($item === 'a') { throw new \Exception('Oi!'); } return true; });

preferences:
31.92 ms | 402 KiB | 5 Q