3v4l.org

run code in 300+ PHP versions simultaneously
<?php function analyze(string $input): bool { $decoded = base64_decode($input); var_dump(bin2hex($decoded)); return base64_encode($decoded) === $input; } var_dump(analyze('PHP')); var_dump(analyze('PHP=')); var_dump(analyze('PHM='));

preferences:
71.54 ms | 407 KiB | 5 Q