3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test_Math($count = 140000) { $time_start = microtime(true); $mathFunctions = array("abs", "acos", "asin", "atan", "bindec", "floor", "exp", "sin", "tan", "pi", "is_finite", "is_nan", "sqrt"); foreach ($mathFunctions as $key => $function) { if (!function_exists($function)) unset($mathFunctions[$key]); } for ($i=0; $i < $count; $i++) { foreach ($mathFunctions as $function) { $r = call_user_func_array($function, array($i)); echo "."; } } return number_format(microtime(true) - $time_start, 3); } $total = 0; $functions = get_defined_functions();

preferences:
36.83 ms | 402 KiB | 5 Q