3v4l.org

run code in 300+ PHP versions simultaneously
<?php array_map(function ($i) { eval("class {$i}Exception extends Exception { }"); }, explode(' ', 'Foo Bar')); try { throw new FooException('foo'); } catch (FooException $e) { throw new BarException('bar'); } catch (BarException $e) { echo 'hallo!'; }

preferences:
59.66 ms | 405 KiB | 5 Q