3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 10; $i++) { var_dump(log10($i % 100 + 1) * 20); }
Output for 4.3.0 - 7.1.0
float(0) float(6.0205999132796) float(9.5424250943932) float(12.041199826559) float(13.97940008672) float(15.563025007673) float(16.901960800285) float(18.061799739839) float(19.084850188786) float(20)