3v4l.org

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