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)); echo "$a | $b\n"; }
based on LAkhQ
Output for 5.3.18 - 7.2.8
a | b 0 | 0 1 | 0 1 | 0 1 | 1