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'); }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.00.0140.00719.96
8.4.150.0020.00014.05
8.4.140.0110.01117.50
8.4.130.0110.00917.74
8.4.120.0080.00420.59
8.4.110.0130.00818.88
8.4.100.0090.01218.78
8.4.90.0120.00920.71
8.4.80.0070.00118.78
8.4.70.0090.00918.99
8.4.60.0110.00718.61
8.4.50.0090.01218.54
8.4.40.0110.00718.09
8.4.30.0060.00318.99
8.4.20.0130.00621.53
8.4.10.0030.00619.45
8.3.280.0090.01118.53
8.3.270.0110.00916.48
8.3.260.0110.00916.66
8.3.250.0140.00618.83
8.3.240.0120.00716.73
8.3.230.0150.00516.61
8.3.220.0130.00618.92
8.3.210.0120.00616.54
8.3.200.0040.00416.86
8.3.190.0040.00417.28
8.3.180.0110.00718.67
8.3.170.0150.00416.57
8.3.160.0130.00617.13
8.3.150.0110.00316.92
8.3.140.0050.00318.98
8.3.130.0090.00018.55
8.3.120.0060.00320.47
8.3.110.0030.00620.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0090.00017.97
8.3.70.0310.00017.81
8.3.60.0240.00717.81
8.3.50.0040.00818.34
8.3.40.0180.00617.81
8.3.30.0190.00617.81
8.3.20.0260.00017.81
8.3.10.0120.00817.81
8.3.00.0230.00317.81
8.2.290.0080.01216.59
8.2.280.0130.00718.25
8.2.270.0000.01816.61
8.2.260.0090.00916.63
8.2.250.0040.00416.69
8.2.240.0100.00616.94
8.2.230.0040.00422.58
8.2.220.0040.00437.54
8.2.210.0100.00326.77
8.2.200.0080.00416.75
8.2.190.0160.00817.81
8.2.180.0230.00417.81
8.2.170.0170.01017.81
8.2.160.0180.00917.81
8.2.150.0230.00317.81
8.2.140.0200.00317.81
8.2.130.0290.00017.81
8.2.120.0260.00317.81
8.2.110.0230.00417.81
8.2.100.0330.00017.81
8.2.90.0160.01217.81
8.2.80.0190.00917.81
8.2.70.0150.01217.81
8.2.60.0070.00717.81
8.2.50.0210.00717.81
8.2.40.0280.00417.81
8.2.30.0130.01017.81
8.2.20.0130.00817.81
8.2.10.0180.00417.81
8.2.00.0170.00317.81
8.1.330.0140.00616.20
8.1.320.0130.00618.10
8.1.310.0110.00716.10
8.1.300.0130.00316.28
8.1.290.0030.00630.84
8.1.280.0220.00017.81
8.1.270.0210.00317.81
8.1.260.0250.00017.81
8.1.250.0220.00517.81
8.1.240.0380.00017.81
8.1.230.0290.00017.81
8.1.220.0200.00417.81
8.1.210.0270.00017.81
8.1.200.0130.00717.81
8.1.190.0170.00417.81
8.1.180.0220.00317.81
8.1.170.0220.00017.81
8.1.160.0150.00517.81
8.1.150.0230.00017.81
8.1.140.0270.00017.81
8.1.130.0230.00017.81
8.1.120.0210.00017.81
8.1.110.0100.01017.81
8.1.100.0160.00417.81
8.1.90.0150.01217.81
8.1.80.0160.00817.81
8.1.70.0150.00917.81
8.1.60.0210.00617.81
8.1.50.0250.00017.81
8.1.40.0180.00717.81
8.1.30.0230.00317.81
8.1.20.0190.00617.81
8.1.10.0220.00417.81
8.1.00.0170.01017.81

preferences:
33.23 ms | 403 KiB | 5 Q