3v4l.org

run code in 500+ PHP versions simultaneously
<?php $address = "555 Test Drive, Testville, CA 98773"; preg_match("/(.+), (\w+), (\w+) (\w+)/", $address, $matches); print_r($matches); list($original, $street, $city, $state, $zip) = $matches; echo $street . "\n" . $city . "\n" . $state . "\n" . $zip;
Output for rfc.property-hooks, git.master, git.master_jit
Array ( [0] => 555 Test Drive, Testville, CA 98773 [1] => 555 Test Drive [2] => Testville [3] => CA [4] => 98773 ) 555 Test Drive Testville CA 98773

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:
116.32 ms | 2738 KiB | 4 Q