3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "a | b\n"; for($i = 0; $i < 4; $i++){ list($a, $b) = str_split(str_pad(decbin($i), 2, 0, STR_PAD_LEFT)); echo "$a | $b | " . $a|$b; echo "\n"; }
based on BmSnt
Output for 5.3.18 - 7.2.6
a | b 0 | 0 | 0 1 | 1 | 0 1 | 0 | 1 1 | 1 | 1