3v4l.org

run code in 200+ PHP versions simultaneously
<?php $x = 'This is a string'; $y = base64_encode($x); $z = base64_decode($y); if ($x != $z) { print 'base64 encoding/decoding broken'; } else { echo "ok"; }
Output for 4.3.0 - 7.4.0
ok