3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $rawdata = 'data:image/png;base64,AAAFBfj42Pj4'; list($type, $data) = explode(';', $rawdata); list(, $data) = explode(',', $data); //$data = base64_decode($data); echo $data; echo '<br>'; list(, $data) = explode('base64,',$rawdata); echo $data;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
AAAFBfj42Pj4<br>AAAFBfj42Pj4