3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $h = null; for($i=0; $i<100; $i++) { $k = new stdClass; $k->pack = $h; $h = $k; } var_dump($h);
Output for 7.1.7
object(stdClass)#100 (1) { ["pack"]=> object(stdClass)#99 (1) { ["pack"]=> object(stdClass)#98 (1) { ["pack"]=> object(stdClass)#97 (1) { ["pack"]=> object(stdClass)#96 (1) { ["pack"]=> object(stdClass)#95 (1) { ["pack"]=> object(stdClass)#94 (1) { ["pack"]=> object(stdClass)#93 (1) { ["pack"]=> object(stdClass)#92 (1) { ["pack"]=> object(stdClass)#91 (1) { ["pack"]=> object(stdClass)#90 (1) { ["pack"]=> object(stdClass)#89 (1) { ["pack"]=> object(stdClass)#88 (1) { ["pack"]=> object(stdClass)#87 (1) { ["pack"]=> object(stdClass)#86 (1) { ["pack"]=> object(stdClass)#85 (1) { ["pack"]=> object(stdClass)#84 (1) { ["pack"]=> object(stdClass)#83 (1) { ["pack"]=> object(stdClass)#82 (1) { ["pack"]=> object(stdClass)#81 (1) { ["pack"]=> object(stdClass)#80 (1) { ["pack"]=> object(stdClass)#79 (1) { ["pack"]=> object(stdClass)#78 (1) { ["pack"]=> object(stdClass)#77 (1) { ["pack"]=> object(stdClass)#76 (1) { ["pack"]=> object(stdClass)#75 (1) { ["pack"]=> object(stdClass)#74 (1) { ["pack"]=> object(stdClass)#73 (1) { ["pack"]=> object(stdClass)#72 (1) { ["pack"]=> object(stdClass)#71 (1) { ["pack"]=> object(stdClass)#70 (1) { ["pack"]=> object(stdClass)#69 (1) { ["pack"]=> object(stdClass)#68 (1) { ["pack"]=> object(stdClass)#67 (1) { ["pack"]=> object(stdClass)#66 (1) { ["pack"]=> object(stdClass)#65 (1) { ["pack"]=> object(stdClass)#64 (1) { ["pack"]=> object(stdClass)#63 (1) { ["pack"]=> object(stdClass)#62 (1) { ["pack"]=> object(stdClass)#61 (1) { ["pack"]=> object(stdClass)#60 (1) { ["pack"]=> object(stdClass)#59 (1) { ["pack"]=> object(stdClass)#58 (1) { ["pack"]=> object(stdClass)#57 (1) { ["pack"]=> object(stdClass)#56 (1) { ["pack"]=> object(stdClass)#55 (1) { ["pack"]=> object(stdClass)#54 (1) { ["pack"]=> object(stdClass)#53 (1) { ["pack"]=> object(stdClass)#52 (1) { ["pack"]=> object(stdClass)#51 (1) { ["pack"]=> object(stdClass)#50 (1) { ["pack"]=> object(stdClass)#49 (1) { ["pack"]=> object(stdClass)#48 (1) { ["pack"]=> object(stdClass)#47 (1) { ["pack"]=> object(stdClass)#46 (1) { ["pack"]=> object(stdClass)#45 (1) { ["pack"]=> object(stdClass)#44 (1) { ["pack"]=> object(stdClass)#43 (1) { ["pack"]=> object(stdClass)#42 (1) { ["pack"]=> object(stdClass)#41 (1) { ["pack"]=> object(stdClass)#40 (1) { ["pack"]=> object(stdClass)#39 (1) { ["pack"]=> object(stdClass)#38 (1) { ["pack"]=> object(stdClass)#37 (1) { ["pack"]=> object(stdClass)#36 (1) { ["pack"]=> object(stdClass)#35 (1) { ["pack"]=> object(stdClass)#34 (1) { ["pack"]=> object(stdClass)#33 (1) { ["pack"]=> object(stdClass)#32 (1) { ["pack"]=> object(stdClass)#31 (1) { ["pack"]=> object(stdClass)#30 (1) { ["pack"]=> object(stdClass)#29 (1) { ["pack"]=> object(stdClass)#28 (1) { ["pack"]=> object(stdClass)#27 (1) { ["pack"]=> object(stdClass)#26 (1) { ["pack"]=> object(stdClass)#25 (1) { ["pack"]=> object(stdClass)#24 (1) { ["pack"]=> object(stdClass)#23 (1) { ["pack"]=> object(stdClass)#22 (1) { ["pack"]=> object(stdClass)#21 (1) { ["pack"]=> object(stdClass)#20 (1) { ["pack"]=> object(stdClass)#19 (1) { ["pack"]=> object(stdClass)#18 (1) { ["pack"]=> object(stdClass)#17 (1) { ["pack"]=> object(stdClass)#16 (1) { ["pack"]=> object(stdClass)#15 (1) { ["pack"]=> object(stdClass)#14 (1) { ["pack"]=> object(stdClass)#13 (1) { ["pack"]=> object(stdClass)#12 (1) { ["pack"]=> object(stdClass)#11 (1) { ["pack"]=> object(stdClass)#10 (1) { ["pack"]=> object(stdClass)#9 (1) { ["pack"]=> object(stdClass)#8 (1) { ["pack"]=> object(stdClass)#7 (1) { ["pack"]=> object(stdClass)#6 (1) { ["pack"]=> object(stdClass)#5 (1) { ["pack"]=> object(stdClass)#4 (1) { ["pack"]=> object(stdClass)#3 (1) { ["pack"]=> object(stdClass)#2 (1) { ["pack"]=> object(stdClass)#1 (1) { ["pack"]=> NULL } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }
Process exited with code 137.
Output for 7.0.20 - 7.1.6
object(stdClass)#100 (1) { ["pack"]=> object(stdClass)#99 (1) { ["pack"]=> object(stdClass)#98 (1) { ["pack"]=> object(stdClass)#97 (1) { ["pack"]=> object(stdClass)#96 (1) { ["pack"]=> object(stdClass)#95 (1) { ["pack"]=> object(stdClass)#94 (1) { ["pack"]=> object(stdClass)#93 (1) { ["pack"]=> object(stdClass)#92 (1) { ["pack"]=> object(stdClass)#91 (1) { ["pack"]=> object(stdClass)#90 (1) { ["pack"]=> object(stdClass)#89 (1) { ["pack"]=> object(stdClass)#88 (1) { ["pack"]=> object(stdClass)#87 (1) { ["pack"]=> object(stdClass)#86 (1) { ["pack"]=> object(stdClass)#85 (1) { ["pack"]=> object(stdClass)#84 (1) { ["pack"]=> object(stdClass)#83 (1) { ["pack"]=> object(stdClass)#82 (1) { ["pack"]=> object(stdClass)#81 (1) { ["pack"]=> object(stdClass)#80 (1) { ["pack"]=> object(stdClass)#79 (1) { ["pack"]=> object(stdClass)#78 (1) { ["pack"]=> object(stdClass)#77 (1) { ["pack"]=> object(stdClass)#76 (1) { ["pack"]=> object(stdClass)#75 (1) { ["pack"]=> object(stdClass)#74 (1) { ["pack"]=> object(stdClass)#73 (1) { ["pack"]=> object(stdClass)#72 (1) { ["pack"]=> object(stdClass)#71 (1) { ["pack"]=> object(stdClass)#70 (1) { ["pack"]=> object(stdClass)#69 (1) { ["pack"]=> object(stdClass)#68 (1) { ["pack"]=> object(stdClass)#67 (1) { ["pack"]=> object(stdClass)#66 (1) { ["pack"]=> object(stdClass)#65 (1) { ["pack"]=> object(stdClass)#64 (1) { ["pack"]=> object(stdClass)#63 (1) { ["pack"]=> object(stdClass)#62 (1) { ["pack"]=> object(stdClass)#61 (1) { ["pack"]=> object(stdClass)#60 (1) { ["pack"]=> object(stdClass)#59 (1) { ["pack"]=> object(stdClass)#58 (1) { ["pack"]=> object(stdClass)#57 (1) { ["pack"]=> object(stdClass)#56 (1) { ["pack"]=> object(stdClass)#55 (1) { ["pack"]=> object(stdClass)#54 (1) { ["pack"]=> object(stdClass)#53 (1) { ["pack"]=> object(stdClass)#52 (1) { ["pack"]=> object(stdClass)#51 (1) { ["pack"]=> object(stdClass)#50 (1) { ["pack"]=> object(stdClass)#49 (1) { ["pack"]=> object(stdClass)#48 (1) { ["pack"]=> object(stdClass)#47 (1) { ["pack"]=> object(stdClass)#46 (1) { ["pack"]=> object(stdClass)#45 (1) { ["pack"]=> object(stdClass)#44 (1) { ["pack"]=> object(stdClass)#43 (1) { ["pack"]=> object(stdClass)#42 (1) { ["pack"]=> object(stdClass)#41 (1) { ["pack"]=> object(stdClass)#40 (1) { ["pack"]=> object(stdClass)#39 (1) { ["pack"]=> object(stdClass)#38 (1) { ["pack"]=> object(stdClass)#37 (1) { ["pack"]=> object(stdClass)#36 (1) { ["pack"]=> object(stdClass)#35 (1) { ["pack"]=> object(stdClass)#34 (1) { ["pack"]=> object(stdClass)#33 (1) { ["pack"]=> object(stdClass)#32 (1) { ["pack"]=> object(stdClass)#31 (1) { ["pack"]=> object(stdClass)#30 (1) { ["pack"]=> object(stdClass)#29 (1) { ["pack"]=> object(stdClass)#28 (1) { ["pack"]=> object(stdClass)#27 (1) { ["pack"]=> object(stdClass)#26 (1) { ["pack"]=> object(stdClass)#25 (1) { ["pack"]=> object(stdClass)#24 (1) { ["pack"]=> object(stdClass)#23 (1) { ["pack"]=> object(stdClass)#22 (1) { ["pack"]=> object(stdClass)#21 (1) { ["pack"]=> object(stdClass)#20 (1) { ["pack"]=> object(stdClass)#19 (1) { ["pack"]=> object(stdClass)#18 (1) { ["pack"]=> object(stdClass)#17 (1) { ["pack"]=> object(stdClass)#16 (1) { ["pack"]=> object(stdClass)#15 (1) { ["pack"]=> object(stdClass)#14 (1) { ["pack"]=> object(stdClass)#13 (1) { ["pack"]=> object(stdClass)#12 (1) { ["pack"]=> object(stdClass)#11 (1) { ["pack"]=> object(stdClass)#10 (1) { ["pack"]=> object(stdClass)#9 (1) { ["pack"]=> object(stdClass)#8 (1) { ["pack"]=> object(stdClass)#7 (1) { ["pack"]=> object(stdClass)#6 (1) { ["pack"]=> object(stdClass)#5 (1) { ["pack"]=> object(stdClass)#4 (1) { ["pack"]=> object(stdClass)#3 (1) { ["pack"]=> object(stdClass)#2 (1) { ["pack"]=> object(stdClass)#1 (1) { ["pack"]=> NULL } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }