3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $m = 'm'; $y = 'y'; echo preg_replace('/get_|_csv/ig', '', 'get_invoices_and_revenue_csv') . $m . $y . '.csv';
based on AolMp
Output for 4.3.11 - 7.2.0
Warning: preg_replace(): Unknown modifier 'g' in /in/JiTp2 on line 4 my.csv
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier 'g' in /in/JiTp2 on line 4 my.csv