3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$data = file("тут ссыль до txt файла", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); $data = [ '18/Feb/2022:20:51:13 +0500|/dfm96|0|Hurts - Redemption (Kolya Funk Remix)', '18/Feb/2022:20:52:18 +0500|/dfm96|1|NRD1 - All Good Things (Come To An End)', ]; $data = array_reverse($data); $track_count = 0; foreach ($data as $line) { $mass = explode('|', $line); if ($mass[1] === '/dfm96') { $track_count++; if ($track_count > 0) { echo "тра ля ля\n"; } if ($track_count === 20) { break; } } }
Output for git.master, git.master_jit, rfc.property-hooks
тра ля ля тра ля ля

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
58.2 ms | 401 KiB | 8 Q