3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $measures = array('byte', 'kilob', 'megab', 'gigab', 'terab'); $index = floor(log(2147483647, 1024)); echo $index; $size = number_format(2147483647 / pow(1024, $index),1); #echo $size; ?>
based on eKjCt
Output for 5.6.0 - 7.0.4, 7.0.6 - 7.3.0rc3
3
Output for 7.0.5

Process exited with code 137.