Your code to check the PHP level did work correctly.
I changed the line in ewz-base.php so the parse error didn’t occur. But the activation then reported the requirement for PHP5.4
The problem was that I had asked the hosting system to use PHP5.4 (actually 5.5), but my original WordPress installation had inserted (in my local installation) an environment setting for 5.3 which I didn’t know about.
Once I had changed the environment setting, and put ewz-base.php back to its release state, the activation worked fine.
I wonder how many others may have a setting hidden in an .htaccess file that they don’t know about.