3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 1 => array( 'weight' => 800, ), 3 => array( 'weight' => 10000, ), 2 => array( 'weight' => 12000, ), 6 => array( 'weight' => 65535, ), 5 => array( 'weight' => 100, ), 4 => array( 'weight' => 1, ), 7 => array( 'weight' => 0, ), 9 => array( 'weight' => 0, ), 11 => array( 'weight' => 0, ), 8 => array( 'weight' => 1, ), 10 => array( 'weight' => 0, ), ); var_dump( $array );
Output for git.master, git.master_jit, rfc.property-hooks
array(11) { [1]=> array(1) { ["weight"]=> int(800) } [3]=> array(1) { ["weight"]=> int(10000) } [2]=> array(1) { ["weight"]=> int(12000) } [6]=> array(1) { ["weight"]=> int(65535) } [5]=> array(1) { ["weight"]=> int(100) } [4]=> array(1) { ["weight"]=> int(1) } [7]=> array(1) { ["weight"]=> int(0) } [9]=> array(1) { ["weight"]=> int(0) } [11]=> array(1) { ["weight"]=> int(0) } [8]=> array(1) { ["weight"]=> int(1) } [10]=> array(1) { ["weight"]=> int(0) } }

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:
37.42 ms | 402 KiB | 8 Q