3v4l.org

run code in 300+ PHP versions simultaneously
<?php $exp = "ukuran:33,34,35;warna:putih,hitam"; Preg_match_all("/(\d+)|([a-zA-Z]+)/", $exp, $matches); Unset($matches[0]); $matches[1] = array_filter($matches[1]); $matches[2] = array_filter($matches[2]); Var_dump($matches);
Output for git.master_jit, git.master, rfc.property-hooks
array(2) { [1]=> array(3) { [1]=> string(2) "33" [2]=> string(2) "34" [3]=> string(2) "35" } [2]=> array(4) { [0]=> string(6) "ukuran" [4]=> string(5) "warna" [5]=> string(5) "putih" [6]=> string(5) "hitam" } }

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