3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allJobs = [ (object) [ 'id' => 'CFF9B1A6-37B8-4000-B058-03DC648B5289', 'name' => 'Kreditor rapporter til RE pkt. 5' ] ]; $newarray = []; foreach ($allJobs as $allJob) { for ($i = 0; $i < 2 ; ++$i) { $allJob->bku = $i; $newarray[] = clone $allJob; } } var_export($newarray);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => (object) array( 'id' => 'CFF9B1A6-37B8-4000-B058-03DC648B5289', 'name' => 'Kreditor rapporter til RE pkt. 5', 'bku' => 0, ), 1 => (object) array( 'id' => 'CFF9B1A6-37B8-4000-B058-03DC648B5289', 'name' => 'Kreditor rapporter til RE pkt. 5', 'bku' => 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:
119.43 ms | 406 KiB | 5 Q