<?php $str = "0777"; echo octdec((int) $str);
You have javascript disabled. You will not be able to edit any code.