3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cancel_str = "2020-aaa<br>2021-bbb<br>"; $cancel_array = explode("<br>", $cancel_str); $pos = 0; $result = $cancel_array[$pos]; var_dump($result);

preferences:
83.38 ms | 405 KiB | 5 Q