3v4l.org

run code in 300+ PHP versions simultaneously
<?php function pipeExplode($str) { return explode("|", $str); } $text = "sdlkfjsdl|kwflwerflwekr|wlkjlgk4w\n3rtljhrfgkjed|3jhkrjghd|4t44thj\n33rtlhwege|3rth3herjgke|hkjfgdf"; $arr = explode(PHP_EOL, $text); $finalArr = array_map('pipeExplode', $arr); print_r($finalArr);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => sdlkfjsdl [1] => kwflwerflwekr [2] => wlkjlgk4w ) [1] => Array ( [0] => 3rtljhrfgkjed [1] => 3jhkrjghd [2] => 4t44thj ) [2] => Array ( [0] => 33rtlhwege [1] => 3rth3herjgke [2] => hkjfgdf ) )

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:
36.79 ms | 406 KiB | 5 Q