3v4l.org

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

preferences:
45.73 ms | 402 KiB | 5 Q