3v4l.org

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