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'; } } } $greeter = new booHoo($count, $multiple); $greeter->magic();
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $count in /in/6Atr5 on line 21 Warning: Undefined variable $multiple in /in/6Atr5 on line 21 Deprecated: Creation of dynamic property booHoo::$stupidNumber is deprecated in /in/6Atr5 on line 5 Deprecated: Creation of dynamic property booHoo::$anotherStupidNumber is deprecated in /in/6Atr5 on line 6 Deprecated: fmod(): Passing null to parameter #1 ($num1) of type float is deprecated in /in/6Atr5 on line 10 Deprecated: fmod(): Passing null to parameter #2 ($num2) of type float is deprecated in /in/6Atr5 on line 10 such Integer, much clean. Wow

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
48.4 ms | 402 KiB | 8 Q