3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rData = (object)["DateOfBirth"=>"1985-01-01","FirstName"=>"john"]; $rData2 = (object)["DateOfBirth"=>"1980-12-12","FirstName"=>"jane"]; $rArray = array( $rData ); array_push( $rArray, $rData2 ); var_dump($rArray);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> object(stdClass)#1 (2) { ["DateOfBirth"]=> string(10) "1985-01-01" ["FirstName"]=> string(4) "john" } [1]=> object(stdClass)#2 (2) { ["DateOfBirth"]=> string(10) "1980-12-12" ["FirstName"]=> string(4) "jane" } }

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:
165.37 ms | 406 KiB | 5 Q