3v4l.org

run code in 300+ PHP versions simultaneously
<?php $new_array = array( "8000", "12345", "6811-1", "7031", "6841" ); var_dump(max($new_array)); // would expect 8000, but returns 7031 sort($new_array); var_dump($new_array); // the sorted array is wonky... why isn't 8000 at the end?
Output for git.master, git.master_jit, rfc.property-hooks
string(4) "7031" array(5) { [0]=> string(4) "8000" [1]=> string(5) "12345" [2]=> string(6) "6811-1" [3]=> string(4) "6841" [4]=> string(4) "7031" }

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