3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "Skiing, ATV"; $b = "Skiin, ATV / 4x4"; $ts = []; $pieces = explode(',', $a); foreach ($pieces as $piece) { $exp = explode('/', $piece); foreach ($exp as $item) { $ts[] = $item; } } var_dump($ts); $pieces = explode(',', $b); foreach ($pieces as $piece) { $exp = explode('/', $piece); foreach ($exp as $item) { $ts[] = $item; } } var_dump($ts);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> string(6) "Skiing" [1]=> string(4) " ATV" } array(5) { [0]=> string(6) "Skiing" [1]=> string(4) " ATV" [2]=> string(5) "Skiin" [3]=> string(5) " ATV " [4]=> string(4) " 4x4" }

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:
44.07 ms | 401 KiB | 8 Q