3v4l.org

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

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
175.01 ms | 1852 KiB | 11 Q