3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); for($i = 1; $i <= 1000; $i++) { if(function_exists('mcrypt_encrypt')) { echo " "; } else { echo " "; } } $end = microtime(true); echo PHP_EOL."function_exists: ".($end - $start)."ms"; $start = microtime(true); for($i = 1; $i <= 1000; $i++) { if(extension_loaded('mcrypt')) { echo " "; } else { echo " "; } } $end = microtime(true); echo PHP_EOL."extension_loaded: ".($end - $start)."ms";

preferences:
43.49 ms | 402 KiB | 5 Q