3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $perPage = 24; echo 'Item 36 is on page ' . floor(36 / $perPage) + 1 . "\n"; echo 'Item 55 is on page ' . floor(55 / $perPage) + 1 . "\n"; echo 'Item 96 is on page ' . floor(96 / $perPage) + 1 . "\n"; echo 'Item 700 is on page ' . floor(700 / $perPage) + 1 . "\n";
Output for 7.1.0
Warning: A non-numeric value encountered in /in/47Eai on line 5 1 Warning: A non-numeric value encountered in /in/47Eai on line 7 1 Warning: A non-numeric value encountered in /in/47Eai on line 9 1 Warning: A non-numeric value encountered in /in/47Eai on line 11 1
Output for 4.3.0 - 7.0.14
1 1 1 1