3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(base64_decode("\x0YW55dGhpbmc=", true)); var_dump(base64_decode("YW55dGhpbmc=\x0", true));
based on Rkj5B
Output for 7.0.20, 7.1.0 - 7.1.20, 7.2.6 - 7.2.33, 7.3.16 - 7.3.24, 7.4.0 - 7.4.13, 8.0.0
bool(false) bool(false)
Output for 5.5.0 - 5.5.35, 5.6.0 - 5.6.28, 7.0.0 - 7.0.6
string(0) "" string(8) "anything"