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 . "\n"; print $name . "\n"; print var_export($add) . "\n"; print PHP_EOL;
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, 7.0.0 - 7.1.0
dev friendlydev 8
Output for hhvm-3.12.0
dev friendlydev 81
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
dev friendlydev 8 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/VEiSv on line 11 PHP_EOL