3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { array_map(function () {throw new \Exception;}, [1, 2, 3]); } catch (\Exception $e) { } try { array_filter([1, 2, 3], function () {throw new \Exception;}); } catch (\Exception $e) { } try { array_reduce([1, 2, 3], function () {throw new \Exception;}); } catch (\Exception $e) { }

preferences:
44.73 ms | 402 KiB | 5 Q