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 2 2 2 2 2 2 2
Output for 5.3.0 - 5.3.10
4 4 2 2 4 4 2 2