3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 0x0+2; $b = 0x0 +2; $c = 0x0+ 2; $d = 0x0 + 2; $e = 0x0+0x2; $f = 0x0 +0x2; $g = 0x0+ 0x2; $h = 0x0 + 0x2; echo $a .'\n'; echo $b .'\n'; echo $c .'\n'; echo $d .'\n'; echo $e .'\n'; echo $f .'\n'; echo $g .'\n'; echo $h .'\n';
Output for 4.3.0 - 5.2.17, 5.3.11 - 7.1.0
2\n2\n2\n2\n2\n2\n2\n2\n
Output for 5.3.0 - 5.3.10
4\n4\n2\n2\n4\n4\n2\n2\n