3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function checkOGRN($ogrn){ $verify_num = intval(substr($ogrn, 0, 12)); $check_num = intval(substr($ogrn, -1)); $res_num = $verify_num % 11; if ($res_num > 9) $res_num - round($res_num/10)*10; return $result == $chek; } print_r(checkOGRN('311333426300044'));
based on srIm0
Output for 5.0.4 - 5.0.5, 7.0.0 - 7.1.0
Notice: Undefined variable: result in /in/7vWDH on line 7 Notice: Undefined variable: chek in /in/7vWDH on line 7 1
Output for 5.1.0 - 5.6.28
Notice: Undefined variable: chek in /in/7vWDH on line 7 Notice: Undefined variable: result in /in/7vWDH on line 7 1
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: result in /in/7vWDH on line 7 Notice: Undefined variable: chek in /in/7vWDH on line 7 1