3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ public $y; function x(){ print 'asd'; } function __construct(){ $test = 'y'; if($this->$test() === TRUE){ echo 12345; } } } $x = new Test(); echo serialize($x);

preferences:
37.51 ms | 402 KiB | 5 Q