3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '1234'; try{ $test = str_replace( '1' ); }catch(Exception $e){ } var_dump ($test);

preferences:
44.22 ms | 402 KiB | 5 Q