3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $some_objects = [ new SomeClass(1), new SomeClass(2), new SomeClass(3), new SomeClass(4), ]; $func = function(SomeClass $x) { $x->some_function(); return $x; }; array_walk($some_objects, $func); var_dump($some_objects); $mangled_result = array_map($func, $some_objects); var_dump($mangled_result); class SomeClass { private $number; public function __construct($number) { $this->number = $number; } public function some_function() { try { throw new Exception(); } catch (Exception $e) { MANGLE_SOMEHOW($e->getTrace()); } } } function MANGLE_SOMEHOW($trace) { foreach ($trace as $i => $frame) { if (isset($frame['args'])) { foreach ($frame['args'] as $arg_index => $arg_value) { // And here I was thinking this was a 'copy'??? $frame['args'][$arg_index] = $arg_value; } } } } echo 'done';
based on DIO7B
Output for 5.4.45
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [139878556371472]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [139878556368768]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.44
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140254913968656]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140254913965952]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.43
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [139899425036816]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [139899425034112]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.42
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140387512416784]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140387512414080]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.41
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140387854416400]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140387854413696]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.40
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140385948916240]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140385948913536]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.39
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [139807473121808]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [139807473119104]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.38
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140021194615312]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140021194612608]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.37
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [139770244237840]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [139770244235136]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.36
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140170800151056]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140170800148352]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.35
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140064112347664]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140064112344960]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.34
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140329572678160]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140329572675456]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.32
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140049273436688]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140049273433984]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.31
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [139837051255312]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [139837051252608]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.30
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140266330282512]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140266330279808]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.29
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [139911907641872]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [139911907639168]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.28
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140417016953360]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140417016950656]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.27
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [139859961113104]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [139859961110400]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.26
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140411759069712]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140411759067008]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.25
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140199052724752]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140199052722048]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.24
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [139961370827280]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [139961370824576]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.23
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140326444968464]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140326444965760]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.22
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140580102343184]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140580102340480]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.21
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140193874119184]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140193874116480]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.20
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140097825380880]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140097825378176]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.19
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140570556611088]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140570556608384]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.18
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140083346270736]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140083346268032]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.17
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140360571304464]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140360571301760]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.16
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [139799053130256]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [139799053127552]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.15
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140006661380624]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140006661377920]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.14
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [139654026861072]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [139654026858368]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.13
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [140219878541840]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [140219878539136]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.12
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [139833295452688]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [139833295449984]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.11
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [139877775600144]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [139877775597440]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.10
array(4) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [1]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [2]=> object(SomeClass)#3 (1) { ["number":"SomeClass":private]=> int(3) } [3]=> object(SomeClass)#4 (1) { ["number":"SomeClass":private]=> int(4) } } array(3) { [0]=> object(SomeClass)#1 (1) { ["number":"SomeClass":private]=> int(1) } [139910644787728]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } [139910644785024]=> object(SomeClass)#2 (1) { ["number":"SomeClass":private]=> int(2) } } done
Output for 5.4.4 - 5.4.9

Process exited with code 139.
Output for 5.4.0 - 5.4.3

Process exited with code 137.