3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump('11e0' == '.11e2'); var_dump('11e0' == '.011e3'); var_dump('1.1e1' == '.11e2'); echo ".11e2 = ", 0 + '.11e2', "\n"; echo "1.1e1 = ", 0 + '1.1e1', "\n";
based on 8EYj8
Output for 4.3.0 - 5.0.0, 5.0.2 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
bool(true) bool(true) bool(true) .11e2 = 11 1.1e1 = 11
Output for 5.0.1
bool(false) bool(false) bool(false) .11e2 = 0 1.1e1 = 11