3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $replace=array("1: AAA","2: AAA","3: AAA"); echo implode(“\n”,substr_replace($replace,'BBB',3,3)); ?>
based on UOHNb
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Undefined constant '“\n”' in /in/HaMqK:3 Stack trace: #0 {main} thrown in /in/HaMqK on line 3
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Undefined constant '“\n”' in /in/HaMqK on line 3
Process exited with code 255.