3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // print 100 % 5; for ($i=0;$i<100;$i+=25) { print floor(log($i+1, 5)) . PHP_EOL; }
based on Suovv
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
0 2 2 2
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/bIDOg on line 6 0PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/bIDOg on line 6 2PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/bIDOg on line 6 2PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/bIDOg on line 6 2PHP_EOL