3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "S t a c k < o v e r f l o w"; $str = str_replace(' ', '', $str); echo $str;
Output for 5.6.38, 7.1.0 - 7.1.23, 7.2.0 - 7.2.33, 7.3.16 - 7.3.21, 7.4.0 - 7.4.9, 8.0.0alpha1 - beta1
Stack<overflow