3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $workers = 12; $houseStorage = 5; $fullHouses = (int) ($workers / $houseStorage); $remainingWorkers = $workers % $houseStorage; echo "Full houses: {$fullHouses}\n"; echo "Remaining workers: {$remainingWorkers}\n";
Output for 5.3.18 - 7.2.6
Full houses: 2 Remaining workers: 2