3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = '0'; var_dump($a[0]); $a = 0; var_dump($a[0]); set($a); var_dump($a[0]);
Output for 7.0.0 - 7.1.0
string(1) "0" NULL Fatal error: Uncaught Error: Call to undefined function set() in /in/gOMbX:8 Stack trace: #0 {main} thrown in /in/gOMbX on line 8
Process exited with code 255.
Output for 5.0.0 - 5.6.21, hhvm-3.12.0
string(1) "0" NULL Fatal error: Call to undefined function set() in /in/gOMbX on line 8
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.4.5 - 4.4.9
string(1) "0" NULL Fatal error: Call to undefined function: set() in /in/gOMbX on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.4
string(1) "0" NULL Fatal error: Call to undefined function: set() in /in/gOMbX on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
string(1) "0" NULL Fatal error: Call to undefined function: set() in /in/gOMbX on line 8