3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $count = 10000; $string = 'sdfhksdhfsdfhjskfhsdfhs_kshfksdhfksdhfsjkd_kjsdfhksdfhjsdfhsdj_jsdfhkshfj'; for ($i = 0; $i < $count; $i++) { $stringReplace = str_replace('_', ' ', $string); } echo $string.PHP_EOL; echo $stringReplace;
based on 2H3WR
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.1.0
sdfhksdhfsdfhjskfhsdfhs_kshfksdhfksdhfsjkd_kjsdfhksdfhjsdfhsdj_jsdfhkshfj sdfhksdhfsdfhjskfhsdfhs kshfksdhfksdhfsjkd kjsdfhksdfhjsdfhsdj jsdfhkshfj
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/adREa on line 10 sdfhksdhfsdfhjskfhsdfhs_kshfksdhfksdhfsjkd_kjsdfhksdfhjsdfhsdj_jsdfhkshfjPHP_EOLsdfhksdhfsdfhjskfhsdfhs kshfksdhfksdhfsjkd kjsdfhksdfhjsdfhsdj jsdfhkshfj