3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 10; $i++) { var_dump(log10($i % 10 + 1) * 30 + 1); }
Output for 4.3.0 - 7.2.0
float(1) float(10.030899869919) float(15.31363764159) float(19.061799739839) float(21.969100130081) float(24.344537511509) float(26.352941200428) float(28.092699609758) float(29.62727528318) float(31)