3v4l.org

run code in 200+ PHP versions simultaneously
<?php $abc = 'ZZZZZ-- Aaa Bbb Ccc'; $abc = str_replace("-- Aaa Bbb Ccc","",$abc); echo $abc;
Output for 7.2.0 - 7.4.1
ZZZZZ