3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test{ public static $some_array = array( 'one' => '1', 'two' => '22', 'three' => '333', ); public function __construct() { $this->doIt(); } public function doIt() { var_dump(self::$some_array); } } $a = new test(); $a->someArray = array("poop","pee"); $a->doIt();

preferences:
36.42 ms | 402 KiB | 5 Q