3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data='iujhklsc'; if ( base64_encode(base64_decode($data, true)) === $data){ echo '$data is valid'; } else { echo '$data is NOT valid'; }
based on 7ltgs
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
$data is valid
Output for 4.3.0 - 5.1.6
Warning: base64_decode() expects exactly 1 parameter, 2 given in /in/4fXNZ on line 5 $data is NOT valid