- Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Process exited with code 137.- Output for 5.3.7 - 5.3.29
- Parse error: syntax error, unexpected '[' in /in/j0q2S on line 7
Process exited with code 255.
<?php
$value = base64_encode(md5(''));
$start = microtime(true);
for ($i = 0; $i < 10000000; ++$i) {
$soFar = '';
$result = [];
foreach (str_split($value) as $char) {
$soFar .= $char;
$result[] = $soFar;
}
}
$end = microtime(true);
echo $i/($end - $start), ' op/s';
var_dump($result);