3v4l.org

run code in 300+ PHP versions simultaneously
<?php class booHoo{ public function __construct($stupidNumber, $anotherStupidNumber) { $this->stupidNumber = $stupidNumber; $this->anotherStupidNumber = $anotherStupidNumber; } public function magic() { $suchFraction = fmod($this->stupidNumber, $this->anotherStupidNumber); if($suchFraction > 0) { echo 'such Float, much fraction. Wow'; } else { echo 'such Integer, much clean. Wow'; } } } $count = float(44.28); $multiple = float(0.36); $greeter = new booHoo($count, $multiple); $greeter->magic();

preferences:
57.45 ms | 402 KiB | 5 Q