3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $search = 'dev'; $name = 'friendlydev'; $add = strpos($name, $search); header('Content-Type: text/plain'); print $search . PHP_EOL; print $name . PHP_EOL; print var_export($add) . PHP_EOL; print PHP_EOL;
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
dev friendlydev 8
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/BCQ7e on line 8 devPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BCQ7e on line 9 friendlydevPHP_EOL8 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BCQ7e on line 10 PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/BCQ7e on line 11 PHP_EOL