3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = "/person/find/LAST_NAME/contains/kins/FIRST_NAME/contains/j/ONLINEONLY/contains/0"; $t = explode('/',$s); $v = array_filter($t, function($var){ return ($var !== ''); }) ; var_dump($t); var_dump($v);
Output for git.master, git.master_jit, rfc.property-hooks
array(12) { [0]=> string(0) "" [1]=> string(6) "person" [2]=> string(4) "find" [3]=> string(9) "LAST_NAME" [4]=> string(8) "contains" [5]=> string(4) "kins" [6]=> string(10) "FIRST_NAME" [7]=> string(8) "contains" [8]=> string(1) "j" [9]=> string(10) "ONLINEONLY" [10]=> string(8) "contains" [11]=> string(1) "0" } array(11) { [1]=> string(6) "person" [2]=> string(4) "find" [3]=> string(9) "LAST_NAME" [4]=> string(8) "contains" [5]=> string(4) "kins" [6]=> string(10) "FIRST_NAME" [7]=> string(8) "contains" [8]=> string(1) "j" [9]=> string(10) "ONLINEONLY" [10]=> string(8) "contains" [11]=> string(1) "0" }

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:
42.18 ms | 402 KiB | 8 Q