3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(bin2hex(('mb_convert_encoding('€', 'UTF-16', 'UTF-8')));
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected '€' (T_STRING) in /in/NHrGi on line 3
Process exited with code 255.

preferences:
169.69 ms | 1387 KiB | 36 Q