3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Titi { public $valiou; public function getValiou() { return (float) $this->valiou; } } $titi = new Titi(); $titi->valiou = '2.01'; echo $titi->getValiou();
based on FFKLD
Output for 7.1.25 - 7.3.3
2.01