3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $body = " employee_name ======= '<employee_name>' expiration_date ======= '<expiration_date>' issue_date ======= '<issue_date>' district_name ======= '<district_name>' video_link ======= '<video_link>' system_name ======= '<system_name>' system_url ======= '<system_url>' support_email ======= '<support_email>' support_phone ======= '<support_phone>' signature ======= '<signature>' contract_period ======= '<contract_period>' pass_code ======= '<pass_code>' contract_year ======= '<contract_year>' "; $values = array( '<employee_name>' => "HHHHHHHHHH", '<expiration_date>' => 1223234234, '<issue_date>' => 555555, '<district_name>' => '?district_name?', '<video_link>' => '?video_link?', '<system_name>' => 'gfdgdfth', '<system_url>' => '?system_url?', '<support_email>' => 'Support_Email', '<support_phone>' => 'Support_Phone', '<signature>' => 'GLBteam_name', '<contract_period>' => '?contract_period?', '<pass_code>' => '?pass_code?', '<contract_year>' => '?contract_year?' ); foreach ($values as $key=>$value){ $body = str_replace($key, $value, $body); } echo $body;
Output for 4.3.0 - 7.1.0
employee_name ======= 'HHHHHHHHHH' expiration_date ======= '1223234234' issue_date ======= '555555' district_name ======= '?district_name?' video_link ======= '?video_link?' system_name ======= 'gfdgdfth' system_url ======= '?system_url?' support_email ======= 'Support_Email' support_phone ======= 'Support_Phone' signature ======= 'GLBteam_name' contract_period ======= '?contract_period?' pass_code ======= '?pass_code?' contract_year ======= '?contract_year?'