Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Concurrent; $cancel = null; $context = Context::current()->withCanc..
Decoded Output download
<?php
namespace Concurrent;
$cancel = null;
$context = Context::current()->withCancel($cancel);
Task::asyncWithContext($context, function () {
var_dump('START TASK');
try {
(new Timer(1000))->awaitTimeout();
var_dump('TASK COMPLETED');
} catch (\Throwable $e) {
echo $e;
}
});
(new Timer(200))->awaitTimeout();
$cancel(new \Error('This is taking too long...'));
echo "
";
?>
Did this file decode correctly?
Original Code
<?php
namespace Concurrent;
$cancel = null;
$context = Context::current()->withCancel($cancel);
Task::asyncWithContext($context, function () {
var_dump('START TASK');
try {
(new Timer(1000))->awaitTimeout();
var_dump('TASK COMPLETED');
} catch (\Throwable $e) {
echo $e;
}
});
(new Timer(200))->awaitTimeout();
$cancel(new \Error('This is taking too long...'));
echo "\n";
Function Calls
None |
Stats
MD5 | 9f13668b8aa94a6956b60b27f303f17f |
Eval Count | 0 |
Decode Time | 119 ms |