3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 10; $i++) { var_dump(log10(sqrt($i % 10) + 1) * 10); }
Output for 4.3.0 - 7.1.0
float(0) float(3.0102999566398) float(3.8277568533786) float(4.3648877159867) float(4.7712125471966) float(5.1001763591396) float(5.3775485788986) float(5.6178704064481) float(5.8302038458346) float(6.0205999132796)