3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [1,2,3]; $array2 = [3,2,1]; $array3 = [2,1,3]; $array4 = [2,1,3]; $array5 = [1,1,1]; $array6 = [3,3,2]; $array7 = [1,2,1]; $array8 = [8,9,2]; sort($array1); for ($i = 2; $i <= 8; $i++) { sort(${"array$i"}); echo "array $i: " . ($array1 == ${"array$i"} ? 'match' : 'no match') . "\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
array 2: match array 3: match array 4: match array 5: no match array 6: no match array 7: no match array 8: no match

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