3v4l.org

run code in 300+ PHP versions simultaneously
<?php class helloWorld { public $array = array( 0 => 'hugo', 'VALUE FIRST', 'VALUE SECOND', 'VALUE THIRD', ); } $hello = new helloWorld(); $hello->array[1] = 'sas'; print_r($hello->array);

preferences:
42.08 ms | 402 KiB | 5 Q