3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('/Zend_Validate::is\(([^,]+),\s*[\'"]([A-Za-z0-9]+)[\'"]\)/', '(new \Zend\Validator\' . '\2())->isValid(\1)', 'if (Zend_Validate::is($_nEmail, \'EmailAddress\')) {');
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.5.24 - 5.5.30, 5.6.8 - 5.6.16
Parse error: syntax error, unexpected '\' (T_NS_SEPARATOR) in /in/qbZsO on line 4
Process exited with code 255.

preferences:
166.86 ms | 1387 KiB | 24 Q