3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! try { throw new Exception(); } catch (Exception $e) { if (!empty(array_intersect(array('foo'), class_implements(get_class($e))))) { echo 'foo'; } }

preferences:
48.47 ms | 402 KiB | 5 Q