3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace \CacheException; class DriverOffline extends Exception {} class KeyExists extends Exception {} try { throw new \CacheException\KeyExists; } catch (\CacheException\DriverOffline $e) { var_dump($e); } catch (\CacheException\KeyExists $e) { var_dump($e); }

preferences:
42.7 ms | 402 KiB | 5 Q