3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump( mb_encode_numericentity( "\xf4\x90\x80\x80", array( 0x000000, 0x10FFFF, 0x000000, 0xFFFFFF ), 'UTF-8', true ) );
Output for 5.4.20 - 5.4.45, 5.5.2 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
string(4) "????"
Output for 5.4.0 - 5.4.19, 5.5.0 - 5.5.1
string(3) "???"
Output for 5.3.0 - 5.3.29
Warning: mb_encode_numericentity() expects exactly 3 parameters, 4 given in /in/nYbbZ on line 5 NULL
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for mb_encode_numericentity() in /in/nYbbZ on line 5 NULL