3v4l.org

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