3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ " ", // Spaces "?", // Special Character 2, // Integer 3.01, // Float "php", // Lower-case String "pHP", // Camel-case String "Hello", // Title-Case String "123", // String Number true, // Boolean ]; sort($arr, SORT_STRING | SORT_FLAG_CASE); var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
array(9) { [0]=> string(2) " " [1]=> bool(true) [2]=> string(3) "123" [3]=> int(2) [4]=> float(3.01) [5]=> string(1) "?" [6]=> string(5) "Hello" [7]=> string(3) "php" [8]=> string(3) "pHP" }

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