3v4l.org

run code in 200+ 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 - 7.2.0
dev friendlydev 8
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