3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class x { function __clone(){} } $x = new x; $x->__clone();
Output for 4.3.0 - 4.4.9, 7.0.0 - 7.2.0
Output for 5.0.0 - 5.6.28
Fatal error: Cannot call __clone() method on objects - use 'clone $obj' instead in /in/a3AnU on line 8
Process exited with code 255.