3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $g = explode('.',(string)((int)'21668' / 365.25)); print_r($g); $anni = intval($g[0]); $mesi = intval((float)("0.".$g[1]) * 12); echo $anni."<br/>"; echo $mesi."<br/>";
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => 59 [1] => 323750855578 ) 59<br/>3<br/>