3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = 'hai'; $bar = &$foo; $gah = &$bar; for($i=0; $i<100; $i++) debug_zval_dump($bar);
Output for 4.3.0 - 7.1.0
string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1) string(3) "hai" refcount(1)