3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $a = 3; private $c = 'd'; } echo var_export(new A);
Output for 7.3.0 - 7.3.26, 7.4.0 - 7.4.13, 8.0.0
A::__set_state(array( 'a' => 3, 'c' => 'd', ))