3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = "foobar"; $t = $s; $u = $s; debug_zval_dump($s);
based on neqBQ
Output for 7.0.0 - 7.1.0, 7.1.7 - 7.2.0
string(6) "foobar" refcount(1)
Output for 7.1.5 - 7.1.6
string(6) "foobar" refcount(5)
Output for 4.3.0 - 5.6.28
string(6) "foobar" refcount(4)