<?php
$res = pow(5, pow(5, pow(5, pow(5, 5))));
echo $res;
Outputs :
INF
I know it cannot be stored in a 64 bit float, but is there a way to calculate this kind of big number ? All my attempts failed (always this "INF").
EDIT : Yes, I know that this number is huge, and that's really what I'm trying to calculate. Also, I'm trying to do it without extensions (unless I fully understand what the extension does and I'm able to code it myself).