3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nibble1 = hexdec('3'); echo dechex($nibble1); // '6'
based on on7oN
Output for 7.3.0 - 7.3.28, 7.4.0 - 7.4.16, 8.0.0 - 8.0.3
3