3v4l.org

run code in 300+ PHP versions simultaneously
<?php function encode_char($c) { $sum = ord($c); $first = rand(-100,100); $second = rand(-100,100); $third = $sum - ($first + $second); return [$first, $second, $third]; } print_r(encode_char('a')); ?>

preferences:
47.55 ms | 402 KiB | 5 Q