3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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();
Output for 4.3.0 - 7.2.0