3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(mb_convert_encoding("str", "from_invalid", "UTF-8")); var_dump(mb_convert_encoding("str", "UTF-8", "to_invalid""));
Output for 8.0.0 - 8.0.1
Parse error: syntax error, unexpected double-quote mark, expecting ")" in /in/voeuu on line 4
Process exited with code 255.
Output for 7.3.0 - 7.3.26, 7.4.0 - 7.4.14
Parse error: syntax error, unexpected '"', expecting ')' in /in/voeuu on line 4
Process exited with code 255.

preferences:
185.83 ms | 1395 KiB | 51 Q