3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "MDVB, 94010, (555) 555-5555, KHII, 94015, (555) 555-5555, POONHY, 94010, (555) 555-5555,"; var_export( preg_split('/\d{3}-\d{4}\K, ?/', $string, 0, PREG_SPLIT_NO_EMPTY) );
Output for git.master_jit, git.master
array ( 0 => 'MDVB, 94010, (555) 555-5555', 1 => 'KHII, 94015, (555) 555-5555', 2 => 'POONHY, 94010, (555) 555-5555', )

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:
74.75 ms | 405 KiB | 5 Q