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 // use the glib timer class use Glib\Timer; // create a timer object $timer = ..

Decoded Output download

<?php 
// use the glib timer class 
use Glib\Timer; 
 
// create a timer object 
$timer = new Timer(); 
 
// let's time some loops 
for ($i = 1; $i <= 10000; $i++) { 
    $foo = "I am $i"; 
} 
echo 'Time elapsed was ' , $timer->elapsed(), PHP_EOL; 
 
// same thing with foreach 
$array = range(0, 10000); 
 
// reset the timer to 0 
$timer->start(); 
foreach($array as $i) { 
    $foo = "I am $i"; 
} 
echo 'Time elapsed was ' , $timer->elapsed(), PHP_EOL; 
 
// do both and get total time 
$timer->start(); // this is equivalent to reset 
for ($i = 1; $i <= 10000; $i++) { 
    $foo = "I am $i"; 
} 
// stop the timer and build the array 
$timer->stop(); 
$array = range(0, 10000); 
// continue the timer 
$timer->continue(); 
foreach($array as $i) { 
    $foo = "I am $i"; 
} 
 
echo 'Time elapsed was ' , $timer->elapsed(), PHP_EOL; ?>

Did this file decode correctly?

Original Code

<?php
// use the glib timer class
use Glib\Timer;

// create a timer object
$timer = new Timer();

// let's time some loops
for ($i = 1; $i <= 10000; $i++) {
    $foo = "I am $i";
}
echo 'Time elapsed was ' , $timer->elapsed(), PHP_EOL;

// same thing with foreach
$array = range(0, 10000);

// reset the timer to 0
$timer->start();
foreach($array as $i) {
    $foo = "I am $i";
}
echo 'Time elapsed was ' , $timer->elapsed(), PHP_EOL;

// do both and get total time
$timer->start(); // this is equivalent to reset
for ($i = 1; $i <= 10000; $i++) {
    $foo = "I am $i";
}
// stop the timer and build the array
$timer->stop();
$array = range(0, 10000);
// continue the timer
$timer->continue();
foreach($array as $i) {
    $foo = "I am $i";
}

echo 'Time elapsed was ' , $timer->elapsed(), PHP_EOL;

Function Calls

None

Variables

None

Stats

MD5 03fc92e56e20e43cd28b19e2644c15a7
Eval Count 0
Decode Time 144 ms