3v4l.org

run code in 300+ PHP versions simultaneously
<?php $csv = <<<CSV id: 10, location: Canada, people: 12 id: 10, location: United States, people: 15 id: 15, location: England, people: 19 id: 16, location: India, people: 20 id: 16, location: Germany, people: 9 CSV; foreach (explode(PHP_EOL, $csv) as $line) { $firstColumn = strtok($line, ','); if (!isset($lookup[$firstColumn])) { echo $line . PHP_EOL; $lookup[$firstColumn] = true; } }
Output for rfc.property-hooks, git.master, git.master_jit
id: 10, location: Canada, people: 12 id: 15, location: England, people: 19 id: 16, location: India, people: 20

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:
47.62 ms | 1122 KiB | 4 Q