3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 2; $i < 1461; ++$i) { if (1461 % $i == 0) { echo $i, PHP_EOL; for ($y = 1; $y < $i; ++$y) { if ($i % $y == 0) { echo ' - ', $y, PHP_EOL; } } } }
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
3 - 1 487 - 1
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/r6JGq on line 5 PHP_EOL - 1 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/r6JGq on line 9 PHP_EOL487 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/r6JGq on line 5 PHP_EOL - 1 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/r6JGq on line 9 PHP_EOL