3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [2,1,3,4,5,6,6,7]; $arr2 = [1,2,3,4,5,6,7]; $arr3 = [1,3,4,5,6,7]; $arr4 = [1,5,6,7,4,3,2]; sort($arr1); sort($arr2); sort($arr3); sort($arr4); $n = 7; $range = range(1,$n); var_dump($arr1 == $range); var_dump($arr2 == $range); var_dump($arr3 == $range); var_dump($arr4 == $range);
Output for git.master, git.master_jit, rfc.property-hooks
bool(false) bool(true) bool(false) bool(true)

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