3v4l.org

run code in 300+ PHP versions simultaneously
<?php class WP_Post { public $filter; public function __get( $property ) { return $this->$property; } } $post = new WP_Post(); $post->filter = 'foo'; var_dump( $post->filter ); unset( $post->filter ); var_dump( $post->filter );

preferences:
67.87 ms | 404 KiB | 5 Q