3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'YWJj'; var_dump(base64_encode(base64_decode($str, true)) === $str);
based on S9TkX
Output for 5.2.0 - 7.2.0
bool(true)
Output for 4.3.0 - 5.1.6
Warning: base64_decode() expects exactly 1 parameter, 2 given in /in/BX0Ue on line 4 bool(false)