3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $can_set = true; if (!function_exists('set_time_limit')) $can_set = false; // Are we able to use the function $current_time_limit = ini_get('max_execution_time'); @set_time_limit(123); $new_time_limit = ini_get('max_execution_time'); @set_time_limit($current_time_limit); if (empty($current_time_limit) || $current_time_limit === $new_time_limit) $can_set = false; echo $can_set;
Output for 5.2.3 - 7.2.0
Output for 4.3.0 - 5.2.2
1