3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $val = 17; $fr = 10; $to = 16; if (strcmp($val, base_convert($val, $fr, $fr) )) { echo "$val isn't purely in base $fr"; } else { $newval = base_convert($val, $fr, $to); echo "new val is $newval"; }
Output for 4.3.0 - 7.2.0
new val is 11