3v4l.org

run code in 200+ 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 - 7.1.10
Fatal error: Cannot unset $this in /in/leE0N on line 4
Process exited with code 255.
Output for 4.3.0 - 7.0.20
working