3v4l.org

run code in 300+ PHP versions simultaneously
<?php $trans_id = 'vGGFu8t/vVJI+sqZAJKL0sGhcSM='; $html_in = array('/\+/', '/=/', '/\//'); $html_out = array('%2B', '%3D', '%2F'); echo(preg_replace($html_in, $html_out, $trans_id));

preferences:
40.35 ms | 402 KiB | 5 Q