3v4l.org

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