public function validatePhpCode($code)
    {
        $temp = tmpfile();
        fwrite($temp, $code);
        $meta_data = stream_get_meta_data($temp);

        $result = $this->validatePhpFile($meta_data['uri']);
        fclose($temp);
        return $result;
    }