3v4l.org

run code in 300+ PHP versions simultaneously
<?php $y = array(); $x = array( 'vacationRequestDateFrom' => '2016-09-1', 'vacationRequestDateTo' => '2016-09-1' ); $x2 = array( 'vacationRequestDateFrom' => '2016-09-1', 'vacationRequestDateTo' => '2016-09-1' ); array_push($y, $x); array_push($y, $x2); $o = array_values($y); var_dump($o); //$o is not the correct output //$y is what i have, and it should look like here /* blockedDays: [ "2016-09-13", "2016-09-14", "2016-09-15", "2016-09-16", "2016-09-17", "2016-09-18", "2016-09-19", "2016-09-20", "2016-09-21", "2016-09-22" ], */ ?>
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(2) { ["vacationRequestDateFrom"]=> string(9) "2016-09-1" ["vacationRequestDateTo"]=> string(9) "2016-09-1" } [1]=> array(2) { ["vacationRequestDateFrom"]=> string(9) "2016-09-1" ["vacationRequestDateTo"]=> string(9) "2016-09-1" } }

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:
41.59 ms | 1559 KiB | 4 Q