3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = str_split("1A1R0A"); $arr = (object) array( 'numeric' => array_filter($str, function($char) { return is_numeric($char); }), 'character' => array_filter($str, function($char) { return !is_numeric($char); }), ); print_r($arr);
Output for git.master, git.master_jit, rfc.property-hooks
stdClass Object ( [numeric] => Array ( [0] => 1 [2] => 1 [4] => 0 ) [character] => Array ( [1] => A [3] => R [5] => A ) )

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