3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 10; $i++) { var_dump(log10(sqrt($i % 10 + 1)) * ($i % 10 + 1) * 10); }
Output for 4.3.0 - 7.2.0
float(0) float(3.0102999566398) float(7.1568188207949) float(12.041199826559) float(17.4742501084) float(23.344537511509) float(29.578431400499) float(36.123599479678) float(42.94091292477) float(50)