3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = '0xa'; $y = '10'; var_dump($x == $y); $x = (int)$x; $y = (int)$y; echo "$x, $y\n"; var_dump($x == $y);
based on L2Et3
Output for 7.0.0 - 7.2.0
bool(false) 0, 10 bool(false)
Output for 4.3.0 - 5.6.28
bool(true) 0, 10 bool(false)