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) . "\n";
based on D3cCr
Output for 7.0.0 - 7.2.0
0, 10
Output for 5.3.22 - 5.6.28
1 0, 10