3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = '0xa'; $y = '10'; echo ($x == $y) . '\n'; $x = (int)$x; $y = (int)$y; echo "$x, $y\n"; echo $x == $y;
based on nLToH
Output for 7.0.0 - 7.2.0
\n0, 10
Output for 5.3.22 - 5.6.28
1\n0, 10