<?php$val = substr(pi()."", ((int) false), intval('4'));$val = str_split(implode("", explode(".", $val)));$val = array_reduce($val, function ($x, $y) { return intval($x) + intval($y); });echo $val;?>