3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = "foobar"; $t = $s; $u = $s; echo PHP_VERSION . "\n"; debug_zval_dump($s);
Output for 7.2.3
7.2.3 string(6) "foobar" refcount(1)
Output for 7.2.2
7.2.2 string(6) "foobar" refcount(1)
Output for 7.2.1
7.2.1 string(6) "foobar" refcount(1)
Output for 7.2.0
7.2.0 string(6) "foobar" refcount(1)
Output for 7.1.15
7.1.15 string(6) "foobar" refcount(1)
Output for 7.1.14
7.1.14 string(6) "foobar" refcount(1)
Output for 7.1.13
7.1.13 string(6) "foobar" refcount(1)
Output for 7.1.12
7.1.12 string(6) "foobar" refcount(1)
Output for 7.1.11
7.1.11 string(6) "foobar" refcount(1)
Output for 7.1.10
7.1.10 string(6) "foobar" refcount(1)
Output for 7.1.9
7.1.9 string(6) "foobar" refcount(1)
Output for 7.1.8
7.1.8 string(6) "foobar" refcount(1)
Output for 7.1.7
7.1.7 string(6) "foobar" refcount(1)
Output for 7.1.6
7.1.6 string(6) "foobar" refcount(5)
Output for 7.1.5
7.1.5 string(6) "foobar" refcount(5)
Output for 7.1.4
7.1.4 string(6) "foobar" refcount(5)
Output for 7.1.3
7.1.3 string(6) "foobar" refcount(5)
Output for 7.1.2
7.1.2 string(6) "foobar" refcount(5)
Output for 7.1.1
7.1.1 string(6) "foobar" refcount(1)
Output for 7.1.0
7.1.0 string(6) "foobar" refcount(1)
Output for 7.0.27
7.0.27 string(6) "foobar" refcount(1)
Output for 7.0.26
7.0.26 string(6) "foobar" refcount(1)
Output for 7.0.25
7.0.25 string(6) "foobar" refcount(1)
Output for 7.0.24
7.0.24 string(6) "foobar" refcount(1)
Output for 7.0.23
7.0.23 string(6) "foobar" refcount(1)
Output for 7.0.22
7.0.22 string(6) "foobar" refcount(1)
Output for 7.0.21
7.0.21 string(6) "foobar" refcount(1)
Output for 7.0.20
7.0.20 string(6) "foobar" refcount(1)
Output for 7.0.19
7.0.19 string(6) "foobar" refcount(1)
Output for 7.0.18
7.0.18 string(6) "foobar" refcount(1)
Output for 7.0.17
7.0.17 string(6) "foobar" refcount(1)
Output for 7.0.16
7.0.16 string(6) "foobar" refcount(1)
Output for 7.0.15
7.0.15 string(6) "foobar" refcount(1)
Output for 7.0.14
7.0.14 string(6) "foobar" refcount(1)
Output for 7.0.13
7.0.13 string(6) "foobar" refcount(1)
Output for 7.0.12
7.0.12 string(6) "foobar" refcount(1)
Output for 7.0.11
7.0.11 string(6) "foobar" refcount(1)
Output for 7.0.10
7.0.10 string(6) "foobar" refcount(1)
Output for 7.0.9
7.0.9 string(6) "foobar" refcount(1)
Output for 7.0.8
7.0.8 string(6) "foobar" refcount(1)
Output for 7.0.7
7.0.7 string(6) "foobar" refcount(1)
Output for 7.0.6
7.0.6 string(6) "foobar" refcount(1)
Output for 7.0.5
7.0.5 string(6) "foobar" refcount(1)
Output for 7.0.4
7.0.4 string(6) "foobar" refcount(1)
Output for 7.0.3
7.0.3 string(6) "foobar" refcount(1)
Output for 7.0.2
7.0.2 string(6) "foobar" refcount(1)
Output for 7.0.1
7.0.1 string(6) "foobar" refcount(1)
Output for 7.0.0
7.0.0 string(6) "foobar" refcount(1)
Output for hhvm-3.18.4 - 3.18.5, hhvm-3.20.2 - 3.22.0
7.1.99-hhvm string(6) "foobar" refcount(1)
Output for hhvm-3.12.14 - 3.17.3, hhvm-3.19.2
7.0.99-hhvm string(6) "foobar" refcount(1)
Output for hhvm-3.10.1 - 3.11.1
5.6.99-hhvm string(6) "foobar" refcount(1)
Output for 5.6.30
5.6.30 string(6) "foobar" refcount(4)
Output for 5.6.29
5.6.29 string(6) "foobar" refcount(4)
Output for 5.6.28
5.6.28 string(6) "foobar" refcount(4)
Output for 5.6.27
5.6.27 string(6) "foobar" refcount(4)
Output for 5.6.26
5.6.26 string(6) "foobar" refcount(4)
Output for 5.6.25
5.6.25 string(6) "foobar" refcount(4)
Output for 5.6.24
5.6.24 string(6) "foobar" refcount(4)
Output for 5.6.23
5.6.23 string(6) "foobar" refcount(4)
Output for 5.6.22
5.6.22 string(6) "foobar" refcount(4)
Output for 5.6.21
5.6.21 string(6) "foobar" refcount(4)
Output for 5.6.20
5.6.20 string(6) "foobar" refcount(4)
Output for 5.6.19
5.6.19 string(6) "foobar" refcount(4)
Output for 5.6.18
5.6.18 string(6) "foobar" refcount(4)
Output for 5.6.17
5.6.17 string(6) "foobar" refcount(4)
Output for 5.6.16
5.6.16 string(6) "foobar" refcount(4)
Output for 5.6.15
5.6.15 string(6) "foobar" refcount(4)
Output for 5.6.14
5.6.14 string(6) "foobar" refcount(4)
Output for 5.6.13
5.6.13 string(6) "foobar" refcount(4)
Output for 5.6.12
5.6.12 string(6) "foobar" refcount(4)
Output for 5.6.11
5.6.11 string(6) "foobar" refcount(4)
Output for 5.6.10
5.6.10 string(6) "foobar" refcount(4)
Output for 5.6.9
5.6.9 string(6) "foobar" refcount(4)
Output for 5.6.8
5.6.8 string(6) "foobar" refcount(4)
Output for 5.6.7
5.6.7 string(6) "foobar" refcount(4)
Output for 5.6.6
5.6.6 string(6) "foobar" refcount(4)
Output for 5.6.5
5.6.5 string(6) "foobar" refcount(4)
Output for 5.6.4
5.6.4 string(6) "foobar" refcount(4)
Output for 5.6.3
5.6.3 string(6) "foobar" refcount(4)
Output for 5.6.2
5.6.2 string(6) "foobar" refcount(4)
Output for 5.6.1
5.6.1 string(6) "foobar" refcount(4)
Output for 5.6.0
5.6.0 string(6) "foobar" refcount(4)
Output for 5.5.38
5.5.38 string(6) "foobar" refcount(4)
Output for 5.5.37
5.5.37 string(6) "foobar" refcount(4)
Output for 5.5.36
5.5.36 string(6) "foobar" refcount(4)
Output for 5.5.35
5.5.35 string(6) "foobar" refcount(4)
Output for 5.5.34
5.5.34 string(6) "foobar" refcount(4)
Output for 5.5.33
5.5.33 string(6) "foobar" refcount(4)
Output for 5.5.32
5.5.32 string(6) "foobar" refcount(4)
Output for 5.5.31
5.5.31 string(6) "foobar" refcount(4)
Output for 5.5.30
5.5.30 string(6) "foobar" refcount(4)
Output for 5.5.29
5.5.29 string(6) "foobar" refcount(4)
Output for 5.5.28
5.5.28 string(6) "foobar" refcount(4)
Output for 5.5.27
5.5.27 string(6) "foobar" refcount(4)
Output for 5.5.26
5.5.26 string(6) "foobar" refcount(4)
Output for 5.5.25
5.5.25 string(6) "foobar" refcount(4)
Output for 5.5.24
5.5.24 string(6) "foobar" refcount(4)
Output for 5.5.23
5.5.23 string(6) "foobar" refcount(4)
Output for 5.5.22
5.5.22 string(6) "foobar" refcount(4)
Output for 5.5.21
5.5.21 string(6) "foobar" refcount(4)
Output for 5.5.20
5.5.20 string(6) "foobar" refcount(4)
Output for 5.5.19
5.5.19 string(6) "foobar" refcount(4)
Output for 5.5.18
5.5.18 string(6) "foobar" refcount(4)
Output for 5.5.16
5.5.16 string(6) "foobar" refcount(4)
Output for 5.5.15
5.5.15 string(6) "foobar" refcount(4)
Output for 5.5.14
5.5.14 string(6) "foobar" refcount(4)
Output for 5.5.13
5.5.13 string(6) "foobar" refcount(4)
Output for 5.5.12
5.5.12 string(6) "foobar" refcount(4)
Output for 5.5.11
5.5.11 string(6) "foobar" refcount(4)
Output for 5.5.10
5.5.10 string(6) "foobar" refcount(4)
Output for 5.5.9
5.5.9 string(6) "foobar" refcount(4)
Output for 5.5.8
5.5.8 string(6) "foobar" refcount(4)
Output for 5.5.7
5.5.7 string(6) "foobar" refcount(4)
Output for 5.5.6
5.5.6 string(6) "foobar" refcount(4)
Output for 5.5.5
5.5.5 string(6) "foobar" refcount(4)
Output for 5.5.4
5.5.4 string(6) "foobar" refcount(4)
Output for 5.5.3
5.5.3 string(6) "foobar" refcount(4)
Output for 5.5.2
5.5.2 string(6) "foobar" refcount(4)
Output for 5.5.1
5.5.1 string(6) "foobar" refcount(4)
Output for 5.5.0
5.5.0 string(6) "foobar" refcount(4)