3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function rgb_to_hex($red, $green, $blue) { return dechex($red).dechex($green).dechex($blue); } echo rgb_to_hex(217, 39, 44);
Output for 5.3.20 - 7.2.0
d9272c