3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo preg_replace_callback( '\d+', '123abc456def789', 'incr' ); function incr($args){ var_dump($args); }
Output for 7.0.0 - 7.1.0
Warning: preg_replace_callback(): Requires argument 2, '123abc456def789', to be a valid callback in /in/IZn9m on line 6 incr
Output for 5.2.0 - 5.6.28
Warning: preg_replace_callback(): Requires argument 2, '123abc456def789', to be a valid callback in /in/IZn9m on line 7 incr
Output for 5.0.0 - 5.1.6
Warning: preg_replace_callback(): requires argument 2, '123abc456def789', to be a valid callback in /in/IZn9m on line 7 incr
Output for 4.3.0 - 4.4.9
Warning: preg_replace_callback() requires argument 2, '123abc456def789', to be a valid callback in /in/IZn9m on line 7 incr