3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arg = '09", echo "hi", "'; preg_replace("/([0-9]+)(.+)/e",'list($var, $var2) = array("$1", "$2")', $arg); var_dump($var, $var2);
Output for 7.0.0 - 7.1.0
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/eKJKq on line 4 Notice: Undefined variable: var in /in/eKJKq on line 5 Notice: Undefined variable: var2 in /in/eKJKq on line 5 NULL NULL
Output for 5.5.0 - 5.6.28
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /in/eKJKq on line 4 Notice: Array to string conversion in /in/eKJKq on line 4 string(2) "09" string(15) "", echo "hi", ""
Output for 4.3.0 - 5.4.45
Notice: Array to string conversion in /in/eKJKq on line 4 string(2) "09" string(15) "", echo "hi", ""