3v4l.org

run code in 300+ PHP versions simultaneously
<?php function checkOGRN($ogrn){ if (strlen($ogrn) == 13) { $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; if ($result == $check) return true; } elseif (strlen($ogrn) == 15) { $verify_num = intval(substr($ogrn, 0, 14)); $check_num = intval(substr($ogrn, -1)); $res_num = $verify_num % 13; if ($res_num > 9) $res_num - round($res_num/10)*10; if ($result == $check) return true; } else return false; } print_r(checkOGRN('311333426300144'));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $result in /in/FJRml on line 14 Warning: Undefined variable $check in /in/FJRml on line 14 1

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
48.88 ms | 401 KiB | 8 Q