3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump([ 3 ^ 4, // 7 255 ^ 256, // 511 4 ^ 12 // 8 ]);
based on haegc
Output for 5.6.0 - 7.3.0beta1
array(3) { [0]=> int(7) [1]=> int(511) [2]=> int(8) }