3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $topic = TopicHelper::get($this->id); $topic->isAuthorised('read'); // this guard call `throws an exception` instead of returning `false` $topic->subscribe(1); // this guard call `throws an exception` instead of returning `false` $this->app->enqueueMessage(Text::_('COM_COMPONENT_POST_SUBSCRIBED_TOPIC'), 'success'); // Activity integration $activity = KunenaFactory::getActivityIntegration(); $activity->onAfterSubscribe($topic, 1); } catch (Exception $e) { $this->app->enqueueMessage(Text::_('COM_COMPONENT_POST_NO_SUBSCRIBED_TOPIC') . ' ' . $e->getMessage(), 'error'); }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "TopicHelper" not found in /in/ouQEX:5 Stack trace: #0 {main} thrown in /in/ouQEX on line 5
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
64.79 ms | 405 KiB | 5 Q