1.2.432. Excimer

Excimer is a PHP 7.1+ extension that provides an interrupting timer and a low-overhead sampling profiler.

<?php

$timer = new ExcimerTimer;
$timer->setInterval( 10 /* seconds */ );
$timer->setCallback( function () {
    throw new Exception( "The allowed time has been exceeded" );
} );
$timer->start();
do_expensive_thing();

?>

See also Excimer.

1.2.432.1. Specs

Short name

Extensions/Extexcimer

Rulesets

All, Appinfo

Exakat since

2.4.2

PHP Version

With PHP 7.1 and more recent

Severity

Time To Fix

Precision

Very high

Available in

Entreprise Edition, Exakat Cloud