3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo preg_replace_callback( '\d+', 'incr', '123abc456def789' ); function incr($args){ var_dump($args); }
based on IZn9m
Output for 7.0.0 - 7.1.0
Warning: preg_replace_callback(): Delimiter must not be alphanumeric or backslash in /in/pml9P on line 6
Output for 4.3.11 - 5.6.21
Warning: preg_replace_callback(): Delimiter must not be alphanumeric or backslash in /in/pml9P on line 7
Output for 4.3.0 - 4.3.10
Warning: Delimiter must not be alphanumeric or backslash in /in/pml9P on line 7