3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $hi = 'ryat'; $hi = preg_replace("$expr", "", $hi); var_dump($hi);
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: expr in /in/0Zk0S on line 5 Warning: preg_replace(): Empty regular expression in /in/0Zk0S on line 5 NULL
Output for 4.3.11 - 5.0.3
Notice: Undefined variable: expr in /in/0Zk0S on line 5 Warning: preg_replace(): Empty regular expression in /in/0Zk0S on line 5 NULL
Output for 4.3.0 - 4.3.10
Notice: Undefined variable: expr in /in/0Zk0S on line 5 Warning: Empty regular expression in /in/0Zk0S on line 5 NULL