3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tries = 1000; $arr = array(1,2,3); $start = microtime(true); for ($i = 0; $i < $tries; $i++) { $test = $arr[$i]; } echo (microtime(true) - $start); $start = microtime(true); for ($i = 0; $i < $tries; $i++) { $test = current($arr); } echo (microtime(true) - $start);

Abusive script

This script was stopped while abusing our resources