3v4l.org

run code in 300+ PHP versions simultaneously
<?php function buffer($data) { throw new Exception('test'); return $data . ' - called'; } ob_start('buffer'); echo "hi"; try { ob_end_flush(); } catch (Exception $e) {}

preferences:
46.93 ms | 402 KiB | 5 Q