3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '1392'; echo $string = bin2hex($str); //echo (int)$string+1;

preferences:
31.06 ms | 402 KiB | 5 Q