3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_array = array("abcd","abc","de","hjjj","g","wer"); $new_array = array_map('strlen', $my_array); // Show maximum and minimum string length using max() function and min() function echo "The shortest array length is " . min($new_array) . ". The longest array length is " . max($new_array).'.'; ?>
Output for git.master, git.master_jit, rfc.property-hooks
The shortest array length is 1. The longest array length is 4.

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