3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "20142311.235504"; preg_match('~^(?<year>\d{4})(?<day>\d{2})(?<month>\d{2}).(?<hour>\d{2})(?<minute>\d{2})(?<second>\d{2})$~', $str, $match); echo '<pre>', print_r($match);
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [0] => 20142311.235504 [year] => 2014 [1] => 2014 [day] => 23 [2] => 23 [month] => 11 [3] => 11 [hour] => 23 [4] => 23 [minute] => 55 [5] => 55 [second] => 04 [6] => 04 ) 1

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