3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DataStorage { use DataHandler; static private $dataStorage = [ 'key' => 'data' ]; } //Data getter trait DataHandler { static public function get($property) { return self::$dataStorage[$property]; } } echo DataStorage::get('key');

This is an error 404

There are `0` results


preferences:
212.46 ms | 1403 KiB | 7 Q