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) * $i * 10); }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
float(0) float(3.0102999566398) float(7.6555137067573) float(13.09466314796) float(19.084850188786) float(25.500881795698) float(32.265291473392) float(39.325092845137) float(46.641630766677) float(54.185399219517)