3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test_alfa = array(); $test_alfa[0] = "aa"; $test_alfa[1] = "aa"; $test_alfa[2] = "aa"; $test_alfa[3] = "bb"; $test_alfa[4] = "aa"; $test_alfa[5] = "bb"; $test_alfa[6] = "cc"; $test_alfa[7] = "bb"; $test_beta= array_unique($test_alfa); $numValues = count($test_beta); sort($test_beta); print_r($test_beta); echo ("Number of elements in test_beta = $numValues ");
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => aa [1] => bb [2] => cc ) Number of elements in test_beta = 3

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