3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $word = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."; $revd = preg_replace_callback('#([A-Za-z]+)#', 'rev_first', $word); function rev_first($matches){ return strrev($matches[1]); } var_dump($revd);
based on PXEs8
Output for 4.3.0 - 7.2.0
string(56) "meroL muspi rolod tis tema, rutetcesnoc gnicsipida tile."