3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = [ 'replace' => 'Iron Man', 'search' => 'Inevitable', 'subject' => 'I am Inevitable', ]; echo call_user_func_array('str_replace', $params);
Output for 8.0.0 - 8.0.3
I am Iron Man
Output for 7.3.0 - 7.3.26, 7.4.0 - 7.4.13
I am Inevitable