3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(preg_replace_callback('/(?<=A)[^B]+B/','md5', "foo ApasswordB bar \xef\xb7\x90"));
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: md5() expects parameter 1 to be string, array given in /in/VebG0 on line 3 string(13) "foo A bar ﷐"
Output for 4.3.0 - 4.4.9
Notice: Array to string conversion in /in/VebG0 on line 3 string(45) "foo A4410ec34d9e6c1a68100ca0ce033fb17 bar ﷐"