3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php defined('EMPTY_STRING') or define('EMPTY_STRING', strval(NULL)); if(implode(EMPTY_STRING, array_fill(0, 10, PHP_EOL)) === str_repeat(PHP_EOL, 10)) { echo '='; } else { echo '!='; }
based on btSg1
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
=
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4otSP on line 5 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/4otSP on line 5 =