3v4l.org

run code in 300+ PHP versions simultaneously
<?php $target = "abcwa"; echo preg_replace('/./', 'w:$0', $target); echo "\n"; echo preg_replace('/(?=.)/', 'w:', $target);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
170.3 ms | 1720 KiB | 11 Q