3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach(range(1,9) as $z) { echo $z." - ".base_convert($z,10,3)."\n"; }
based on Phjjt
Output for 4.3.0 - 7.2.0
1 - 1 2 - 2 3 - 10 4 - 11 5 - 12 6 - 20 7 - 21 8 - 22 9 - 100