3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $name = "descuentoladrillo"; if(preg_match('/descuento/i',$string)){ echo "Simona"; }
based on 1boX8
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc6
Notice: Undefined variable: string in /in/b4kYW on line 3
Output for hhvm-3.15.4
Notice: Undefined variable: string in /in/b4kYW on line 3 Warning: preg_match() expects parameter 2 to be string, null given in /in/b4kYW on line 3