run code in 300+ PHP versions simultaneously
<?php $address = 'One Infinite Loop, Cupertino 95014'; $cityZipCodeRegex = '/^[^,]+,\s*(.+?)\s*(\d{5})$/'; preg_match($cityZipCodeRegex, $address, $matches); [, $city, $zipCode] = $matches; var_dump($matches); //saveCityZipCode($city, $zipCode);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> string(34) "One Infinite Loop, Cupertino 95014" [1]=> string(9) "Cupertino" [2]=> string(5) "95014" }

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

30.52 ms | 402 KiB | 8 Q