3v4l.org

run code in 300+ PHP versions simultaneously
<?php $debil = 'test.html'; var_dump( str_replace([ 'html', 'htm' ], 'htmlbackup', $debil, 1) );
Output for 5.6.0 - 5.6.28, 7.0.0 - 7.0.13
Fatal error: Only variables can be passed by reference in /in/8arfo on line 10
Process exited with code 255.

preferences:
76.43 ms | 402 KiB | 48 Q