3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $code = '8**'; str_replace('*', '[0,9]{1}', $code); $course_filters = array('200','809'); if (!empty($course_filters[$subject])) { foreach ($course_filters[$subject] as $key => $code) { preg_match("/8[0-9]{1}[0-9]{1}/", $string, $matches); if ($matches) { echo "found = ".$code; } } }
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: subject in /in/J2XIh on line 8
Output for hhvm-3.10.0 - 3.12.0
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: subject in /in/J2XIh on line 8