3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $replace = "I'm here"; $str = "xy matches xy"; echo preg_replace_callback("/matches/", create_function('$matches', 'return "'.$replace.'";'), $str);
Output for 7.2.0
Deprecated: Function create_function() is deprecated in /in/hWtj6 on line 4 xy I'm here xy
Output for 5.3.20 - 7.1.10
xy I'm here xy