3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ["!qwerty","sapien", "!Bart", "!qwerty", "aa!bb"]; $filtered = preg_grep("/^\!.*$/", $arr); Var_dump($filtered); var_dump(array_diff($arr, $filtered));
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [0]=> string(7) "!qwerty" [2]=> string(5) "!Bart" [3]=> string(7) "!qwerty" } array(2) { [1]=> string(6) "sapien" [4]=> string(5) "aa!bb" }

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