3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 8.9; $b = var_export(round($a, 2), true); var_dump(assert($a === $b)); echo $a ." \n"; echo $b;
based on HLXL1
Output for 7.1.0 - 7.3.0alpha1
Warning: assert(): assert($a === $b) failed in /in/QuR0B on line 7 bool(false) 8.9 8.9
Output for 7.0.1 - 7.0.20
Warning: assert(): assert($a === $b) failed in /in/QuR0B on line 7 bool(false) 8.9 8.9000000000000004
Output for 7.0.0
Warning: assert(): assert($a === $b) failed in /in/QuR0B on line 7 NULL 8.9 8.9000000000000004
Output for hhvm-3.15.4
Warning: assert(): Assertion failed in /in/QuR0B on line 7 NULL 8.9 8.9
Output for 5.6.0 - 5.6.30
Warning: assert(): Assertion failed in /in/QuR0B on line 7 NULL 8.9 8.9000000000000004