3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('php__01.png','php__02.png','php__03.png','php_2_01.png','php_2_02.png','php_10_01.png','php_10_02.png','php_9_02.png','php_9_01.png','php_9_03.png'); $cb = function($valueA, $valueB) { $vA = explode('_', $valueA); $vB = explode('_', $valueB); $element = 0; do { $x = $vA[$element] - $vB[$element++]; } while ($x <> 0); return $x; }; usort($arr, $cb); var_dump($arr);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: Unsupported operand types: string - string in /in/9mGq0:10 Stack trace: #0 [internal function]: {closure}('php__01.png', 'php__02.png') #1 /in/9mGq0(15): usort(Array, Object(Closure)) #2 {main} thrown in /in/9mGq0 on line 10
Process exited with code 255.

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