3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = 'code=topup'; echo preg_match($var, $result);
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: result in /in/ABXbp on line 4 Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /in/ABXbp on line 4
Output for 4.3.11 - 5.0.3
Notice: Undefined variable: result in /in/ABXbp on line 4 Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /in/ABXbp on line 4
Output for 4.3.0 - 4.3.10
Notice: Undefined variable: result in /in/ABXbp on line 4 Warning: Delimiter must not be alphanumeric or backslash in /in/ABXbp on line 4