3v4l.org

run code in 200+ PHP versions simultaneously
<?php class OzanKlasse { public $someField = 'someTextField'; static function someFunction() { $self = new Self(); echo $self->someField; } } OzanKlasse::someFunction();
based on CPBPe
Output for 7.2.0 - 7.4.2
someTextField