3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('/(\w+?)(__)(\w+?)/i', '.', 'aluno_pobre__casado__novata').PHP_EOL; $patterns = array ('/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/', '/^\s*{(\w+)}\s*=/'); $replace = array ('\3/\4/\1\2', '$\1 ='); echo preg_replace($patterns, $replace, '{startDate} = 1999-5-27'); ?>
Output for git.master, git.master_jit, rfc.property-hooks
..ovata $startDate = 5/27/1999

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
50.95 ms | 401 KiB | 8 Q