3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 123.45; $b = 'a'; $ans = floatval($a) / floatval($b); var_dump((int)trim($b)); ?>
based on CKDFR
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.0 - 7.3.0beta1
Warning: Division by zero in /in/O9P01 on line 7 int(0)
Output for hhvm-3.22.0
Warning: Division by zero in /in/O9P01 on line -1 int(0)