3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(str_replace('<employee_name>', 'test name', 'sdjadslfgksdlfkgjsdlfkjg dfkgjlsdkjfglsdkfjg sdfk gsldkfjg lsdkfgjsldfkjgl sdfkgs <employee_name> dfgksjdlfgjsldkfjgsldkf gsdkjfgakjerlekjfgvslderkgle rglerjge rgeslkrgj dslfkgje rgkje rgjldekrj gt')); var_dump(str_replace('<employee>', 'TEST', 'sdjadslfgksdlfkgjsdlfkjg dfkgjlsdkjfglsdkfjg sdfk gsldkfjg lsdkfgjsldfkjgl sdfkgs <employee_name> dfgksjdlfgjsldkfjgsldkf gsdkjfgakjerlekjfgvsl<employee>derkgle rglerjge rgeslkrgj dslfkgje rgkje rgjldekrj gt'));
Output for 4.3.0 - 7.1.0
string(191) "sdjadslfgksdlfkgjsdlfkjg dfkgjlsdkjfglsdkfjg sdfk gsldkfjg lsdkfgjsldfkjgl sdfkgs test name dfgksjdlfgjsldkfjgsldkf gsdkjfgakjerlekjfgvslderkgle rglerjge rgeslkrgj dslfkgje rgkje rgjldekrj gt" string(201) "sdjadslfgksdlfkgjsdlfkjg dfkgjlsdkjfglsdkfjg sdfk gsldkfjg lsdkfgjsldfkjgl sdfkgs <employee_name> dfgksjdlfgjsldkfjgsldkf gsdkjfgakjerlekjfgvslTESTderkgle rglerjge rgeslkrgj dslfkgje rgkje rgjldekrj gt"