3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function decbin_advanced($binary_string) { $number = 0; while (true) { if ($binary_string == decbin($number)) { return $number; } $number++; } } echo decbin_advanced(101);
based on RHgne
Output for 5.3.18 - 7.2.0
5