3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i=0; $max = 60000; while($i < $max) { $i++; $data[md5($i)] = true; } $stime = microtime(true); $i=0; while($i < $max) { array_key_exists('notexistingkey', $data); } $time = microtime(true) - $stime; echo "Starting array_key_exists => $time\n"; $stime = microtime(true); $i=0; while($i < $max) { isset($data['notexistingkey']); } $time = microtime(true) - $stime; echo "Starting isset => $time\n";
Output for 5.3.21 - 5.4.21

Process exited with code 137.