3v4l.org

run code in 300+ PHP versions simultaneously
<?php $v = '<tr><td class="goto_topic" style="padding-left:26px"><a href="#" onclick="window.parent.opener.location=\'page_B3_30040.html\';window.parent.close();">113. Branch 3 - 02003050070-02-02 - Page 5 of 5</a></td></tr>'; $split_char = 'close();">'; $filter1 = explode($split_char, $v)[1]; $split_char = '</a>'; $filter2 = explode($split_char, $filter1)[0]; $has_close = strpos($filter2, 'close();">'); $has_branch = strpos($filter2, " Branch "); $has_page = strpos($filter2, "Page"); //@@DEBUG: echo " HAS CLOSE[" . $has_close . "], HAS BRANCH: [" . $has_branch . "], HAS PAGE: [" . $has_page . "] --> \n[" . $filter2 . "]";
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
HAS CLOSE[], HAS BRANCH: [4], HAS PAGE: [36] --> [113. Branch 3 - 02003050070-02-02 - Page 5 of 5]

preferences:
105.45 ms | 404 KiB | 179 Q