3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'a:4:{s:8:"id_admin";s:2:"97";s:4:"type";s:4:"sale";s:15:"id_organisation";s:3:"283";s:8:"id_entry";i:1535;}'; $encoded = base64_encode($str); $url_encoded = base64url_encode($str); var_dump($encoded, $url_encoded);
based on cqcc3
Output for 7.0.0 - 7.3.0rc4
Fatal error: Uncaught Error: Call to undefined function base64url_encode() in /in/qGk0N:4 Stack trace: #0 {main} thrown in /in/qGk0N on line 4
Process exited with code 255.
Output for 5.6.0 - 5.6.26
Fatal error: Call to undefined function base64url_encode() in /in/qGk0N on line 4
Process exited with code 255.