3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $product = simplexml_load_string('<product><price><main>32.29</main></price></product>'); var_dump($product->price->main / 1.21); var_dump((int) $product->price->main / 1.21); var_dump((string) $product->price->main / 1.21); var_dump((float) $product->price->main / 1.21);
based on l49VX
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.2.6
float(26.446280991736) float(26.446280991736) float(26.685950413223) float(26.685950413223)