3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'YWJj'; var_dump(base64_encode(base64_decode($str, true)));
based on BX0Ue
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(4) "YWJj"
Output for 4.3.0 - 5.1.6
Warning: base64_decode() expects exactly 1 parameter, 2 given in /in/lfis0 on line 4 string(0) ""