3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i < 20; $i++) { var_dump((log10($i % 10 + 1) * 30 + 1) / 2); }
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
float(0.5) float(5.0154499349597) float(7.6568188207949) float(9.5308998699194) float(10.98455006504) float(12.172268755755) float(13.176470600214) float(14.046349804879) float(14.81363764159) float(15.5) float(0.5) float(5.0154499349597) float(7.6568188207949) float(9.5308998699194) float(10.98455006504) float(12.172268755755) float(13.176470600214) float(14.046349804879) float(14.81363764159) float(15.5)
Output for hhvm-3.10.0

Process exited with code 153.