3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = range(0, 100000); $keys = array_map(function ($x) { return chr(46+rand(0, 26)) . chr(46+rand(0, 26)) . chr(46+rand(0, 26)) . $x; }, $x); $vars = array_combine($keys, $x); $time = 0.0; for ($i = $runs = 1000;$i-- > 0;) { $t = microtime(TRUE); extract($vars); $time += microtime(TRUE) - $t; } echo sprintf("%.4f", $time / $runs);

Abusive script

This script was stopped while abusing our resources