3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( preg_match('/^(\d{1,2})\D(\d{1,2})\D(\d{4})$/', '23/04/2015', $matches) ); var_dump( $matches ); var_dump( sprintf("%04d-%02d-%02d", $matches[3], $matches[2], $matches[1]) );
Output for git.master, git.master_jit, rfc.property-hooks
int(1) array(4) { [0]=> string(10) "23/04/2015" [1]=> string(2) "23" [2]=> string(2) "04" [3]=> string(4) "2015" } string(10) "2015-04-23"

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:
44.4 ms | 401 KiB | 8 Q