3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo preg_replace('/Zend_Validate::is\(([^,]+),\s*[\'"]([A-Za-z0-9]+)[\'"]\)/', '(new \Zend\Validator\' . '\2())->isValid(\1)', 'if (Zend_Validate::is($_nEmail, \'EmailAddress\')) {');
based on HiBTC
Output for 7.0.0
Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR), expecting ',' or ')' in /in/qbZsO on line 4
Process exited with code 255.
Output for 5.4.10 - 5.6.16
Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR) in /in/qbZsO on line 4
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_NS_SEPARATOR in /in/qbZsO on line 4
Process exited with code 255.