3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $search = 'dev'; $name = 'friendlydev'; $add = (bool)(strpos($name, $search) !== false); 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 true
Output for hhvm-3.10.0 - 3.12.0
dev friendlydev true1
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
dev friendlydev true Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/rOOYq on line 11 PHP_EOL