3v4l.org

run code in 300+ PHP versions simultaneously
<?php $binary = 0b1110; // 14 var_dump($binary); $hex = base_convert($bin, 2, 16); echo base_convert($hex,16,2);

preferences:
36.43 ms | 402 KiB | 5 Q