3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Testing{ function __construct(){ unset($this); } function write($str){ echo $str; } } $a = new Testing; $a->write("working");
based on C6e7M
Output for 7.1.0
Fatal error: Cannot unset $this in /in/leE0N on line 4
Process exited with code 255.
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
working