3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public $string = 'Test String'; public function foo() { echo 'foo' . PHP_EOL; } static function fooStatic() { echo 'static' . PHP_EOL; } } $a = new Test; $b = $a; $a->string = 'New Test String'; var_dump($b);
Output for 7.3.0rc3
object(Test)#1 (1) { ["string"]=> string(15) "New Test String" }