3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str ="2018-12-05 03:05:43"; preg_match_all("/0*(\d+)/", $str, $arr); $arr = $arr[1]; var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
array(6) { [0]=> string(4) "2018" [1]=> string(2) "12" [2]=> string(1) "5" [3]=> string(1) "3" [4]=> string(1) "5" [5]=> string(2) "43" }

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