3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(str_replace([''], ['foo'], 'bar'));

preferences:
35.48 ms | 402 KiB | 5 Q