3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hex = "ABCDEF"; if (ereg("^#", $hex)) $hex=substr($hex, 1); echo $hex; ?>

preferences:
35.96 ms | 402 KiB | 5 Q