3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 50; $code = ' $ret = ""; for ($j=0; $j<100; $j++) { $ret.= md5($j.$i.$ret); } return $ret;'; $fName = create_function('$j', $code); $start = microtime(true); for($i = 0; $i < $count; $i++){ eval($code); } printf("#1, done in %f\n", microtime(true) - $start); $start = microtime(true); for($i = 0; $i < $count; $i++){ $fName($i); } printf("#2, done in %f\n", microtime(true) - $start); ?>