3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ratio = 1.583333333; $image_width = 2560; $image_height = 3840; $image_ratio = $image_width / $image_height; echo($image_ratio);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0.66666666666667