3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $val = 8/16; $fr = 10; $to = 16; if (strcmp($val, base_convert($val, $fr, $fr) )) { echo "$val isn't purely in base $tbase"; } else { $newval = base_convert($val, $fr, $to); echo "new val is $newval"; }
Output for 5.0.4 - 5.6.21, hhvm-3.12.0, 7.0.0 - 7.1.0
Notice: Undefined variable: tbase in /in/lieRX on line 7 0.5 isn't purely in base
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: tbase in /in/lieRX on line 7 0.5 isn't purely in base