3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['a','b',0,'c',1,2,'ee',3,4,5,'t','x','w']; $numbers = array_filter($array, 'is_numeric'); var_export($numbers); var_export(array_diff_key($array, $numbers));
Output for git.master, git.master_jit, rfc.property-hooks
array ( 2 => 0, 4 => 1, 5 => 2, 7 => 3, 8 => 4, 9 => 5, )array ( 0 => 'a', 1 => 'b', 3 => 'c', 6 => 'ee', 10 => 't', 11 => 'x', 12 => 'w', )

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