3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name1 = 'no_gravity'; $name2 = 'n0_gr4v1ty'; function stringDiff($string1, $string2) { $x = str_split($string1); $y = str_split($string2); return array_diff($x, $y); } var_dump(stringDiff($name1, $name2));
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { [1]=> string(1) "o" [5]=> string(1) "a" [7]=> string(1) "i" }

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:
62.22 ms | 401 KiB | 8 Q