3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace chaining; class chain { static public function working() {echo "working";} static public function one() {return get_called_class();} static public function two() {return get_called_class();} } ${${${${${chain::one()} = chain::two()}::one()}::two()}::one()}::working();

preferences:
29.64 ms | 404 KiB | 5 Q